Python Loop через список
list = [1, 3, 6, 9, 12]
for i in list:
print(i)
Grepper
list = [1, 3, 6, 9, 12]
for i in list:
print(i)
lst = [10, 50, 75, 83, 98, 84, 32]
for x in range(len(lst)):
print(lst[x])
>>> a = [[1, 3, 4], [2, 4, 4], [3, 4, 5]]
>>> a
[[1, 3, 4], [2, 4, 4], [3, 4, 5]]
>>> for list in a:
... for number in list:
... print number
...
1
3
4
2
4
4
3
4
5