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

For ordinary Python string ordering, which statements are true? Select all that apply.

  1. It automatically follows the current locale's dictionary order.
  2. It compares lexicographically by Unicode code points.Ճիշտ պատասխան
  3. It ignores letter case without being asked.
  4. Uppercase and lowercase can affect the ordering result.Ճիշտ պատասխան

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

String ordering compares Unicode code points lexicographically and preserves case distinctions. It does not automatically apply a language's dictionary conventions or fold uppercase and lowercase together.

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

Սկսել վարժանքը
Հարց 59: For ordinary Python string ordering, which statements are… · Python Fundamentals · Questena