Very quick python question.

FleshLight

Diamond Member
Mar 18, 2004
6,883
0
71
When using "elif", do I have to indent that statement under the "if" statement?

Example:

if 0 > x > 5:
sky = blue

elif 6 > x > 10:
sky = red

??
 

Q

Lifer
Jul 21, 2005
12,046
4
81
I don't know what Python is but in Qbasic...well I can't remember that one either.
 

SonnyDaze

Diamond Member
Jul 31, 2004
6,867
3
76
<Samuel L. Jackson> I thought this was a question about motherfvcking snakes!! <Samuel L. Jackson>