0
Input problem
Soo I have two inputs age and name but when I run it it asks only for one input and shows error then
9 Answers
+ 1
name = input("Please enter your name")
age = input("Please enter your age")
print("You are " + name + " and are " + age + " years old.")
There is no error here ..... You just need to press enter and pass the values in input box like below
war machine
13
+ 1
print("you are", name, "and are", age,"years old")
+ 1
Your code must be like this :
name = input("Please enter your name")
age = int(input("Please enter your age")) #Age is integer
print("You are " ,name , " and are " , age , " years old.")
0
there is some error in second input please check the second input carefully
0
ok il try to find the error
0
please check that you could use 'int' in second input if you use then erase it
0
replace the + to ,
0
name = input("Whats your name")
age = input("How old are you")
print("Your name is" +"name" "and you are" +"age" "years old")
this is the code I made in playground I still dont understand the problem il try replacing + with , as someone suggested
0
found the problem it was the mark thingys " "