On 4 September 2010 19:25, Sander Sweers <[email protected]> wrote: > for x in some_stuff: > if x <= 10: > print x > else: > break
Oops, corrected version...
count = 0
for x in some_stuff:
if count < 10:
print x
count +=1
else:
break
Greets
Sander
_______________________________________________
Tutor maillist - [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
