हिंदी

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×