evaluation of >

Gary Wessle phddas at yahoo.com
Mon May 8 04:45:16 CEST 2006


Hi

what does the i > a in this code mean. because the code below is
giving False for all the iteration. isn't suppose to evaluate each
value of i to the whole list? thanks

a = range(8)
i = 0
while i < 11:
    print i > a
    i = i + 1

False
False
False
False
False
False
False
False
False
False
False


thanks



More information about the Python-list mailing list