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

Classify a list slice assigned to a new name. Which statements describe the resulting copy? Select all that apply.

  1. The outer list is a new object.Ճիշտ պատասխան
  2. The slice is the very same outer list.
  3. Selected mutable elements may still be shared.Ճիշտ պատասխան
  4. Every selected object is recursively copied.

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

The slice creates a distinct outer list, so structural changes to that outer container are separate. Its selected elements are not recursively copied, however, so a mutable element can still be the same object in both lists.

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

Սկսել վարժանքը
Հարց 105: Classify a list slice assigned to a new name. Which… · Python Fundamentals · Questena