Question
Computer Science Question on Exception Handling
If a statement int ('Hello') is written in python, then what kind of exception will it give ?
A
NameError
B
ValueError
C
OSError
D
TypeError
Answer
TypeError
Explanation
Solution
The correct option is (D) :TypeError