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

Evaluation reaches total + 1, but no applicable local, enclosing, global, or built-in scope defines total. Which exception type normally results?

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

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

Resolving total fails because the name has no binding in any applicable scope, which is the common NameError case. A missing dictionary key would instead involve mapping subscription rather than ordinary name lookup.

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

Սկսել վարժանքը
Հարց 88: Evaluation reaches total + 1, but no applicable local,… · Python Fundamentals · Questena