QuestionQ43

VerifiedPython Basics

What does the enumerate function return when it is applied to a list?

Explanation

Python’s enumerate function returns an iterator that yields (index, item) tuples for the items in the list, using sequential integer indexes by default.

Community Discussion

No comments yet. Be the first to start the discussion!