LearnFrenzy
Sign in Take a free test

Loops · Loops MCQ · Question 8

What does enumerate() give? Answer, explanation & discussion

  • MCQ
  • Easy
  • 0 comments
  • Answer explained
  • Moderated community
Question 8 Back to Exercise

What does enumerate(["a", "b"]) yield when looped over?

  • A "a", "b"
  • B 0, 1
  • C ("a", 0), ("b", 1)
  • D (0, "a"), (1, "b") Correct
Correct Answer: Option D

(index, item) pairs, starting at 0 unless start= is given.

Discussion & Comments 0

Share your method, a shortcut, or ask about a step you didn't follow.

No comments yet. Be the first to share your solution!

Post your comment

Comments appear after a quick review by our team.

Search LearnFrenzy

Esc

Quick links