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

What is the shape of each element produced by `data.items()`?

  1. A value with no key
  2. A mutable two-element list
  3. A two-item tuple of key and valueՃիշտ պատասխան
  4. A one-item tuple containing the key

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

Each produced element groups one key with its corresponding value in a two-item tuple. Yielding only values would describe `values`, while mutable two-element lists are not the element format used by `items`.

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

Սկսել վարժանքը
Հարց 47: What is the shape of each element produced by… · Python Fundamentals · Questena