Questenaتدريب يوضح لك ما ينبغي مراجعته لاحقًا
السؤال 67

What is the value of list(enumerate(["a", "b"])) when no start argument is supplied?

  1. ['a', 'b']
  2. [(1, 'a'), (2, 'b')]
  3. [(0, 'a'), (1, 'b')]الإجابة الصحيحة
  4. [('a', 0), ('b', 1)]

الشرح

Enumerate pairs each item with a counter and begins that counter at zero unless a different start is provided. Beginning at one is a common convention in prose, but it is not the function's default.

تابع هذا الاختبار

بدء التدريب
السؤال 67: What is the value of list(enumerate(["a", "b"])) when no… · Python Fundamentals · Questena