QuestenaÜben und erkennen, was als Nächstes dran ist
Frage 89

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

  1. TypeErrorRichtige Antwort
  2. ValueError
  3. NameError
  4. KeyError

Erklärung

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.

Mit diesem Test weitermachen

Übung starten
Frage 89: Which exception type normally results from evaluating "3" +… · Python Fundamentals · Questena