"The Big If" Python Help , What is wrong with this?


#1


Honestly I do not see what is wrong with this , Please tell me why it doesn't work.


#2

if/elif and else should be at the same indent level, re-indent your else statement


#3

What do you mean? Please give me an example , I can't understand what you're saying.


#4

indention (spacing) is crucial is python, because there are no (curly) brackets used. Well, this is a normal if else:

if (condition):
  print "do something"
else:
  print "do something else"

this is what you did:

if (condition):
  print "do something"
  else:
    print "do something else"

#5

It worked! Thank you so much good sir!