[Tutor] Help with else

Nick Brodsky nickbrodsky1999 at gmail.com
Fri Oct 9 05:31:17 CEST 2015


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


More information about the Tutor mailing list