Why emumerated list is empty on 2nd round of print?

Viet Nguyen vhnguyenn at yahoo.com
Thu Sep 6 13:26:43 EDT 2018


>>> numList
[2, 7, 22, 30, 1, 8]

>>> aList = enumerate(numList)

>>> for i,j in aList:print(i,j)

0 2
1 7
2 22
3 30
4 1
5 8

>>> for i,j in aList:print(i,j)

>>> 



More information about the Python-list mailing list