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

If `items` is an empty list, what does `not items` return?

  1. The empty list itself
  2. `None`
  3. `False`
  4. `True`الإجابة الصحيحة

الشرح

An empty list is falsy, and `not` produces the Boolean opposite of that truth value, so the result is `True`. It does not return the original list or mutate it into a truthy object.

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

بدء التدريب
السؤال 53: If `items` is an empty list, what does `not items` return? · Python Fundamentals · Questena