"Glen Clark" <gle...@gmail.com> wrote

confirmed = int(input("Are you happy with this? (y/n): ")

if confirmed == "y":

count the parens.

It thinks you are trying to do:

confimed = int(input('ffff') if foo else bar)

HTH,


--
Alan Gauld
Author of the Learn to Program web site
http://www.alan-g.me.uk/


_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to