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

What does a Python for loop obtain from the expression after in and bind to its target on each pass?

  1. Only integer positions from a list
  2. Successive items from an iterableالإجابة الصحيحة
  3. Only values produced by range
  4. A copied list made before the loop

الشرح

A for loop asks an iterable for successive items and binds each item to the loop target. It does not require a numeric counter, and strings and other iterables work even though they are not lists.

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

بدء التدريب
السؤال 61: What does a Python for loop obtain from the expression… · Python Fundamentals · Questena