0
Can someone tell me what i did wrong?đ
name = input() age = int( input() ) print(name + "is" age +"years old.")
8 Answers
+ 2
You forgot to put a comma after "is"!
Also you can't add an integer and string in python . You need to convert age into string by str(age). A better way would be to do this ,
print(name, " is", age, "years old.")
+ 6
Mariam
name = input()
age = int( input() )
print(name + " is",age,"years old.")
You can't concentrate a number add commas and add a space before is otherwise it will be nameis
+ 2
Mariam you can write as many inputs you want but you need to provide all the inputs first time only and each on a newline.
+ 1
Recently did this same exercise dont make age an integrr leave as a string. also put a plus in front of age in your output code
Age = input()
+ 1
Calvin [Inactive] Thank youđ
0
But on sololearn I somehow can only write one input. So no matter how i change it, it still says its wrong
0
Brent Clifford it works anyways. Thanks for your helpđ