Q:

Write a Python program access the index of a list

0

 Write a Python program access the index of a list.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

nums = [5, 15, 35, 8, 98]
for num_index, num_val in enumerate(nums):
    print(num_index, num_val)

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now