statement with a "for" instead of "if". Here is what I had:
if ( len(mylist)> 0) :
for x,y in mylist:
print x,y
else:
print "Empty list"
which was supposed to be:
if ( len(mylist)> 0) :
for x,y in mylist:
print x,y
else:
print "Empty list"
Is this to be expected?
(python 2.2.2)
++++++++++++++++++++++++++++++=
for x in range(5):
... else:
... print "done"
...
1
4
9
16
done
++++++++++++++++++++++++++++++=