Python Programming - Functions - Discussion

Discussion Forum : Functions - General Questions (Q.No. 45)
45.
What is the purpose of the enumerate function?
To generate a sequence of numbers.
To iterate over a sequence and keep track of the index.
To convert a list to a set.
To reverse the order of elements in a list.
Answer: Option
Explanation:
The enumerate function is used to iterate over a sequence and keep track of the index of the current item.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.