pour je dans un pour j dans une boucle python
for i, j in zip(range(x), range(y)):
...
Light Louse
for i, j in zip(range(x), range(y)):
...
# how to use for in python for (range, lists)
fruits = ["pineapple","apple", "banana", "cherry"]
for x in fruits:
if x == "apple":
continue
if x == "banana":
break
print(x)
# fron 2 to 30 by 3 step
for x in range(2, 30, 3):
print(x)
for i in range(0,10,2):
print(i)
for num in nums:
for letter in 'abs':
print(num, letter)
>>> def range1(start, end):
... return range(start, end+1)
...
>>> range1(1, 10)
[1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
for i in range(start, end):
expression