8. Write a python program to access the index of noun_list as in the output below. Note that the loop method is needed to assist in getting answer.
The output is:
noun_list = ['Python', 'Exercises', 'Free', 'Answer', 'Tutorials', 'Numpy']
Answer:
0 Python
1 Exercises
2 Free
3 Answer
4 Tutorials
5 Numpy
Answer:
noun_list = ['Python', 'Exercises', 'Free', 'Answer', 'Tutorials', 'Numpy'] for noun_list_index, noun_list_val in enumerate(noun_list): print(noun_list_index, noun_list_val)
More Exercises:
Python String ExercisesMore Numpy Exercises:
Numpy String ExercisesMore Pandas Exercises:
Pandas Series ExercisesMore Tutorials:
Python Installation - Linux (Ubuntu)