/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
- 0 vote89 views1 answer
- 2 votes114 views4 answers
- 1 vote121 views1 answer
- 0 vote95 views1 answer
- 3 votes104 views1 answer
- 1 vote105 views1 answer
- 0 vote155 views1 answer
- 0 vote102 views1 answer
- 2 votes102 views2 answers
- 1 vote126 views1 answer