हिंदी

Write the syntax of the raise statement.

Advertisements
Advertisements

प्रश्न

Write the syntax of the raise statement.

कोड लेखन
Advertisements

उत्तर

Syntax of raise statement:

raise ExceptionName("Error message")

Example:

raise ValueError("Invalid value")
shaalaa.com
  क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
अध्याय 8: Exception Handling & Generate Functions - EXERCISE [पृष्ठ १५८]

APPEARS IN

सीबीएसई Computer Science with Python [English] Class 12
अध्याय 8 Exception Handling & Generate Functions
EXERCISE | Q 10. | पृष्ठ १५८
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×