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

In Python source, what type of object is created by an empty pair of brace characters?

  1. An empty set
  2. An empty dictionaryՃիշտ պատասխան
  3. An empty list
  4. A syntax error

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

The empty brace literal is reserved for a dictionary, even though nonempty set literals also use braces. An empty set must be constructed explicitly, so treating the empty notation as a set selects the wrong built-in type.

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

Սկսել վարժանքը
Հարց 38: In Python source, what type of object is created by an… · Python Fundamentals · Questena