मराठी

What will be the output for the following code? x = ""hello""if not type(x) is int:raise TypeError(""Only integers are allowed"") -

Advertisements
Advertisements

प्रश्न

What will be the output for the following code?

x = ""hello""
if not type(x) is int:
raise TypeError(""Only integers are allowed"")

पर्याय

  • garbage value

  • hello

  • Only integers are allowed

  • Error

MCQ

उत्तर

Only integers are allowed.

shaalaa.com
Syntax Errors
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×