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

For string membership, which statements are true? Select all that apply.

  1. `"cat" in "concatenate"` is true.Ճիշտ պատասխան
  2. Membership succeeds only for complete words.
  3. Membership looks for a contiguous substring.Ճիշտ պատասխան
  4. Membership is an object-identity test.

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

Membership searches for a contiguous run of code points, so `cat` occurs within `concatenate` and the general substring description is accurate. It does not split text into words first or ask whether the two operands are the same object.

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

Սկսել վարժանքը
Հարց 19: For string membership, which statements are true? Select… · Python Fundamentals · Questena