Home

Loop Through An Array In Python With An Index

python
items = ["a", "b", "c", "d", "e"]

for index, item in enumerate(items):
        print(index, item)
results start
~ fin ~