QuestenaՎարժանք, որը ցույց է տալիս՝ ինչ կրկնել հաջորդիվ
Հարց 9

For Python's `None` value, which statements are true? Select all that apply.

  1. Its exact type is `NoneType`.Ճիշտ պատասխան
  2. Every use of `None` designates the same object.Ճիշտ պատասխան
  3. It is the same value as the empty string.
  4. A fresh `None` object is created each time it is written.

Բացատրություն

`None` is the sole instance of `NoneType`, and all uses of it refer to the same singleton object. An empty string and numeric zero are separate values that may be falsy, but neither is another spelling of `None`.

Շարունակեք այս թեստով

Սկսել վարժանքը
Հարց 9: For Python's `None` value, which statements are true?… · Python Fundamentals · Questena