What will be the output of the following Python code?

t[5]

a) IndexError
b) NameError
c) TypeError
d) ValeError

1 thought on “What will be the output of the following Python code?”

  1. b
    Explanation: The expression shown above results in a name error. This is because the name ‘t’ is not defined.

Leave a Comment