Questenaتدريب يوضح لك ما ينبغي مراجعته لاحقًا
السؤال 13

Which description best fits a Python `str` object?

  1. An immutable sequence of Unicode code pointsالإجابة الصحيحة
  2. A mutable array containing only ASCII bytes
  3. An unordered collection of character objects
  4. A numeric sequence that decodes itself on access

الشرح

A Python string represents Unicode text as an immutable sequence, so its existing positions cannot be edited in place. Calling it a mutable byte array confuses text with a different data model and ignores non-ASCII code points.

تابع هذا الاختبار

بدء التدريب
السؤال 13: Which description best fits a Python `str` object? · Python Fundamentals · Questena