A

Admin • 833K Points
Coach

Q. What does `enumerate()` return?

  • (A) Index and element
  • (B) Only index
  • (C) Only element
  • (D) Length
  • Correct Answer - Option(A)
  • Views: 33
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

`enumerate()` returns both index and value when looping.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.