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

Which exception type normally results from evaluating "3" + 2?

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

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

Addition receives a string and an integer in a combination for which the operation has no suitable meaning, so TypeError is raised. The content of each operand is individually valid, which makes ValueError the less fitting category.

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

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