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