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