how to get index while iterating linst python code example
Example: python3 iterate through indexes
items=['baseball','basketball','football']
for index, item in enumerate(items):
print(index, item)
items=['baseball','basketball','football']
for index, item in enumerate(items):
print(index, item)