Alex Snast a écrit :
HelloI'm new to python and i can't figure out how to write a reverse for loop in python e.g. the python equivalent to the c++ loop for (i = 10; i >= 0; --i)
for (i = 0; i < 10; i--) -> for i in range(10): for (i = 10; i >= 0; --i) -> for i in range(10,-1,-1): Thoma -- http://mail.python.org/mailman/listinfo/python-list