+ 1
Whatâs wrong with this code?
There is something wrong with this code and I cant figure it out. age = int(input("How old are you?") if age > 50: print ("HAH! Im older then you!") elif age < 50: print ("Come on! Im supposed to be older!") else: print ("We are the same age? Cool!")
2 RĂ©ponses
+ 8
The type of error has been mentioned!
And I thank you forgot a paranthesis when calling "age" variable.
You wrote:
age = int(input("How old are you?")
But it should be:
age = int(input("How old are you?"))
(A second closing paranthesis at the end)
+ 5
It seems that your forgot some closing parenthesis.