evaluation of >

Gary Wessle phddas at yahoo.com
Sun May 7 22:45:16 EDT 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