/Python/Try: if '1' != 1: raise "someError" else: print("someError has not occurred") except "someError": print ("someError has occurred")
Try: if '1' != 1: raise "someError" else: print("someError has not occurred") except "someError": print ("someError has occurred")
Try: if '1' != 1: raise "someError" else: print("someError has not occurred") except "someError": print ("someError has occurred")
0
Source: sanfoundry.com
- 3 votes297 views3 answers
- 14 votes268 views1 answer
- 0 vote296 views1 answer
- 37 votes253 views6 answers
- 8 votes267 views3 answers
- 11 votes311 views2 answers
- 0 vote251 views1 answer
- -3 votes288 views6 answers
- -1 vote264 views1 answer
- 2 votes266 views2 answers