Nick Brodsky
2015-10-09 03:31:17 UTC
name = raw_input("What is your name")
print "Great! Now %s, are you a boy or a girl?" % (name)
gender = raw_input("")
if gender == "boy":
print " I can see that, you are very strong":
if gender == "girl":
print ' Yes, and a beautiful one':
else:
print "Your choice"
I don't understand why it doesn't work, it just skips over the else. Thanks for
the help!
Montreallisting.ca
Free Montreal Classifieds
Gaminggame.com
Best Game Reviews You'll Find
_______________________________________________
Tutor maillist - ***@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
print "Great! Now %s, are you a boy or a girl?" % (name)
gender = raw_input("")
if gender == "boy":
print " I can see that, you are very strong":
if gender == "girl":
print ' Yes, and a beautiful one':
else:
print "Your choice"
I don't understand why it doesn't work, it just skips over the else. Thanks for
the help!
Montreallisting.ca
Free Montreal Classifieds
Gaminggame.com
Best Game Reviews You'll Find
_______________________________________________
Tutor maillist - ***@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor