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

What relationship does is test between two references?

  1. Whether their values compare equal after conversion
  2. Whether their text representations match
  3. Whether their types define equality
  4. Whether they designate the same objectՃիշտ պատասխան

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

Identity asks whether both references designate the very same object. It does not coerce operands or invoke their ordinary value-equality behavior, so it is not merely a faster spelling of ==.

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

Սկսել վարժանքը
Հարց 116: What relationship does is test between two references? · Python Fundamentals · Questena