Published
- 1 min read
python3 iterate through indexes
The solution for this is noted below
python3 iterate through indexes
Solution
items=['baseball','basketball','football']
for index, item in enumerate(items):
print(index, item)
Try other methods by searching on the site. That is if this doesn’t work