"Corey Richardson" wrote
Closing the parenthesis helped that one, but my else statement is not
working...heres the code chunk...
if wellness != "Good":
elif wellness != "Well":
elif wellness != "Fine":
print "Oh, I'm sorry you are not feeling well. I guessed
correct, rig
tutor-bounces+christopher.henk=allisontransmission@python.org wrote on
09/24/2009 05:43:24 PM:
> Robert, that is my code. The error? "Theres an error in your program :
> invalid syntax"
> Closing the parenthesis helped that one, but my else statement is not
> working...heres the code chunk.
if wellness != "Good":
elif wellness != "Well":
elif wellness != "Fine":
print "Oh, I'm sorry you are not feeling well. I guessed
correct, right?"
I think the problem is the elif's and the indents...
elif is 'else if', and should be at the same indentation level as the
prev
Robert, that is my code. The error? "Theres an error in your program :
invalid syntax"
Closing the parenthesis helped that one, but my else statement is not
working...heres the code chunk...
if wellness != "Good":
elif wellness != "Well":
elif wellness != "Fine":
print "Oh,