+ 1

need help on an age verification program

def age(): print("Let's see if you are old enough to drive") print("What is your age?") userInput = (input('') if userInput > 16: print("Your age of " + userInput + " years of age is old enough to drive") print(age()) This is my code and it says that (if userInput > 16:) is wrong syntax. Please helppp. I dont know why.

30th Jul 2017, 2:24 AM
Alex
Alex  - avatar
2 Réponses
+ 2
close parenthesis at ( userInput = (input('')) )
30th Jul 2017, 2:36 AM
OrbitHv [Inactive]
OrbitHv [Inactive] - avatar
+ 1
Thank you! I actually had a few other problems to that I needed to fix. All good now!
30th Jul 2017, 2:44 AM
Alex
Alex  - avatar