/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
- 5 votes166 views4 answers
- 86 votes164 views6 answers
- 2 votes144 views1 answer
- 19 votes153 views2 answers
- 46 votes246 views6 answers
- 0 vote185 views2 answers
- -1 vote120 views1 answer
- -1 vote220 views1 answer
- 0 vote188 views2 answers
- 23 votes160 views1 answer