How to print the below line in python 3.x in below format.
print ("How old are you?"),
age = input ()
print ("How tall are you ?"),
height = input ()
print ("How much do you weigh?"),
weight = input()
print("so , you're % year old, % ft tall and % kg heavy.")% (age,height,weight)
Error:-
How old are you?
35
How tall are you ?
2
How much do you weigh?
23
so , you're %x year old, %x ft tall and %x kg heavy.
Traceback (most recent call last): File "C:/Narendra/8th July Ethans Python Batch/Exercises/Python3/ex11.py", line 8, in print("so , you're %x year old, %x ft tall and %x kg heavy.")% (age,height,weight) TypeError: unsupported operand type(s) for %: 'NoneType' and 'tuple'