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

Which exception type normally results from evaluating "abc".append("d")?

  1. AttributeErrorՃիշտ պատասխան
  2. NameError
  3. ValueError
  4. KeyError

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

Attribute lookup cannot find append on a string object, so AttributeError is the relevant category. The name exists and the receiver is a valid object; the failure is specifically the absent requested attribute.

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

Սկսել վարժանքը
Հարց 93: Which exception type normally results from evaluating… · Python Fundamentals · Questena