nesting 'if' statements?
erudite
ask at me.com
Mon May 21 19:42:05 EDT 2001
Hey guys,
Just a quick question:
Is it possible to nest 'if' statements in python? If so how is it
accomplished? Can you provide sample code?
eg.
if expression:
statements
if expression:
statements
elif expression:
statements
else:
elif expression:
statements
if expression:
statements
else:
statements
--EOF--
thanks,
~Eruditus~
"You can't talk to a psycho like a normal human being." -- Poe 'Trigger
Happy Jack'
More information about the Python-list
mailing list