मराठी

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×