[Tutor] Generic For Loop

Max S. maxskywalker1 at gmail.com
Thu Oct 13 02:41:24 CEST 2011


I've been doing some research into C++, and I've noticed the for loops.  Is
there a way to use the C++ version of the loops instead of the Python one?
For example, I believe that the Python syntax would be:

for a=1, a < 11, a += 1:
    print(a)
print("Loop ended.")

if the 'for' keyword did it's function as in C++, Actionscript, or most
other programming languages.  Is there a way to do this?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20111012/910a62ed/attachment.html>


More information about the Tutor mailing list