Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

python problom

Name: Anonymous 2009-07-17 14:10

hi im lerning python and i need help with this i try to make lots of ifs but its not working well it looks funny heres my code

c=3

if c==1:
    print'one'
else:
    if c==2:
        print'two'
    else:
        if c==3:
            print'three'
        else:
            if c==4:
                print'four'
            else:
                print'no number'


i want to make one for 1 to 100 but if i keep going it will get to big what do i do help plz

Name: Anonymous 2009-07-18 20:42

elif says hi.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List