Question

In Python, how to iterate over a list?


Annonce
Ad

Answer

>>> myList=[10,20,30,40,50]
>>> for value in myList:
...     print (value)
... 
10
20
30
40
50


[source]
# ID Query