>>>> for letter in "python":
>  print "Current letter:", letter

>>>> for chic in "python":
>  print "chic:", chic

When you write a for-in loop, you can use any variable name you feel
like using (letter, chic, mycoolvariable, x, etc.) It's that simple :)

Alan

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to