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
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