Let's say that I have a line with:
a = input("Enter your name and age:")
How about using str.split():
user_input_list = input("Enter your name and age:").split(' ')
This creates a list of each space-separated word in the input.
>>> 'George 25'.split(' ') ['George', '25']
Then you can access each part as:
user_input_list # George user_input_list # 25
Is that what you're after ?