Jul-26-2017, 06:36 PM
I am just practicing with python and I keep getting invalid syntax pop up. I want it to end the script if the user says no. Please help!
print (" Hello, I will be asking you multiple questions to build a profile of who you are.") answer = input ("Is this ok?") if answer == ("no") import sys sys.exit() if awnser == ("yes") Name = input(" First of all, what is your name?") print ("Ahh, hello " + Name ) Age = input ("Now " + Name + " What is your age? Now I must ask you enter this in numbers otherwise I will get confused") Address = input ("What is your address?"