A

Admin • 833K Points
Coach

Q. Which function is used to iterate with index in a loop?

  • (A) range()
  • (B) index()
  • (C) enumerate()
  • (D) list()
  • Correct Answer - Option(C)
  • Views: 27
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

`enumerate()` allows iteration with both index and item.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.