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
Post a Comment