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 -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -