I am writing a basic program but when I ask for name and then try and print name while asking for age it gives my this error.
Traceback (most recent call last):
File "/Users/isabella/Library/Mobile Documents/com~apple~CloudDocs/python/Dt_Programing_V1.py", line 15, in <module>
age = int(input("Hi",name,"how old are you?" ))
TypeError: input expected at most 1 argument, got 3
This is my code,
age = 0
while age < 5 or age > 98: #Expected ages to be buying a computer
try:
age = int(input("Hi", name, "how old are you?"))
except ValueError:
print("You need to enter your age correctly, as an intger. ")
continue
Simple solutions would be much appreciated!