You can take in the data immediately to a variable by changing the structure slightly.
fname = input('Enter name: ')
sname = input('Enter surname: ')
age = int(input('Enter age: ')) # will throw an error if not integer
print('Hello, {}. Your surname is {} and your age is {}.'.format(fname, sname, age))
i need help
hi i need help with this thank you if you could help me thAT WOULD BE AWSON
You can take in the data immediately to a variable by changing the structure slightly.