Answers for "python iterate with item and number"

4

python for enumerate loop

>>> values = ["a","b","c"]
>>> for count, value in enumerate(values):
...     print(count, value)
...
0 a
1 b
2 c
Posted by: Guest on December-23-2020

Code answers related to "python iterate with item and number"

Python Answers by Framework

Browse Popular Code Answers by Language