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

For a Python string, what does `len(text)` count?

  1. The number of UTF-8 bytes needed after encoding
  2. The number of visual symbols every reader perceives
  3. The number of Unicode code points in the stringՃիշտ պատասխան
  4. The number of ASCII characters, excluding other text

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

The length operation counts the Unicode code points stored in the string. UTF-8 byte counts depend on a later encoding, while a reader-perceived symbol can itself contain more than one code point.

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

Սկսել վարժանքը
Հարց 15: For a Python string, what does `len(text)` count? · Python Fundamentals · Questena