Python Loop via la liste
list = [1, 3, 6, 9, 12] for i in list: print(i)
Python Itération Liste
lst = [10, 50, 75, 83, 98, 84, 32] for x in range(len(lst)): print(lst[x])
Python Comment itérer dans une liste de listes
>>> 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