+ 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.
2 Answers
+ 2
close parenthesis at ( userInput = (input('')) )
+ 1
Thank you! I actually had a few other problems to that I needed to fix. All good now!