Advertisements
Advertisements
Question
What will be the output for the following code?
x = ""hello""
if not type(x) is int:
raise TypeError(""Only integers are allowed"")
Options
garbage value
hello
Only integers are allowed
Error
MCQ
Solution
Only integers are allowed.
shaalaa.com
Syntax Errors
Is there an error in this question or solution?