Comment compter en arrière pour Loop Python
# for i in range(start, end, step)
for i in range(5, 0, -1):
print(i)
5
4
3
2
1
crookie14
# for i in range(start, end, step)
for i in range(5, 0, -1):
print(i)
5
4
3
2
1
mystring = "Hi Python"
# Iterating through the string using while loop
for i in mystring[-1: -7 : -1] :
# Print all characters iterated
print("Element of string:" , i)
for i in reversed(xrange(101)):
print i,