The quiz where the difficulty automagically adapts to the player's Python knowledge
This is a question page. You can use this page to bookmark a question. Start a new quiz!
Question #652
print(t[5])
The expression above will throw a NameError exception as t is never defined. (programiz.com/python-programming/exception-handling)
What exception will be thrown?
— The Python Quiz (@thepythonquiz) January 23, 2021
print(t[5])
A NameError exception
A TypeError exception
An IndexError exception
A ValueError exception
π Comment the answer, like and retweet! #python
Question difficulty: π΅π΅π΅π΅π΅
Similar questions: