/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
- 10 votes337 views3 answers
- 0 vote352 views1 answer
- 0 vote288 views1 answer
- 0 vote355 views1 answer
- 1 vote341 views1 answer
- 1 vote300 views1 answer
- -2 votes327 views1 answer
- 3 votes400 views1 answer
- 0 vote367 views1 answer
- 4 votes339 views2 answers