Re: [Tutor] List help

2010-11-20 Thread Emile van Sebille
On 11/20/2010 11:06 AM george wu said... x=0 y=0 w=raw_input("Input: ") w=list(w) for x in range(len(w)): a=w[x] t=0 print a if a==2 or a==4 or a==6 or a==8 or a==10: t=a/2 print "hi" When I run this program, it doesn't print "hi". Can you please tell me why? When you're

[Tutor] List help

2010-11-20 Thread george wu
x=0 y=0 w=raw_input("Input: ") w=list(w) for x in range(len(w)): a=w[x] t=0 print a if a==2 or a==4 or a==6 or a==8 or a==10: t=a/2 print "hi" When I run this program, it doesn't print "hi". Can you please tell me why? ___ Tutor