Syntax error in a Python program -


i new python , doing challenges improve. in challenge making program ask someone's age , see if old enough vote. have syntax error highlights : on if line , unsure on have done wrong.

name = input("hello user, welcome new voting system, register please enter name.") age = int(input("thank " + name + ", please enter name continue.")  if age > 18:    print("congratulations " + name + " old enough vote") else:    print("sorry " + name + " not old enough vote") 

age = int(input("thank " + name + ", please enter name continue.")) 

needs bracket


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -

javascript - Restarting Supervisor and effect on FlaskSocketIO -