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

For truth testing in Python conditionals, which values are falsy? Select all that apply.

  1. `0`الإجابة الصحيحة
  2. `"0"`
  3. `[]`الإجابة الصحيحة
  4. `[0]`

الشرح

Numeric zero and an empty list have false truth values, so a condition using either enters its false path. The strings `0` and a one-element list are nonempty and therefore truthy despite containing values that may look false-like.

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

بدء التدريب
السؤال 50: For truth testing in Python conditionals, which values are… · Python Fundamentals · Questena