/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
- 29 votes168 views6 answers
- 3 votes162 views1 answer
- 7 votes160 views4 answers
- 2 votes157 views4 answers
- 0 vote155 views1 answer
- 3 votes228 views2 answers
- 0 vote164 views1 answer
- 3 votes191 views1 answer
- 6 votes162 views5 answers
- 0 vote155 views1 answer