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

Which statements accurately classify Python lists? Select all that apply.

  1. A list preserves element order.Ճիշտ պատասխան
  2. A list can be changed in place.Ճիշտ պատասխան
  3. Every element must have the same type.
  4. One list may contain objects of different types.Ճիշտ պատասխան

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

A list retains element order, permits content changes, and can hold objects of unrelated types. Requiring a single element type is a restriction found in some other sequence systems, not in ordinary Python lists.

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

Սկսել վարժանքը
Հարց 25: Which statements accurately classify Python lists? Select… · Python Fundamentals · Questena