/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
- 7 votes163 views4 answers
- 3 votes172 views2 answers
- 0 vote173 views2 answers
- -1 vote164 views2 answers
- 6 votes159 views1 answer
- 0 vote145 views1 answer
- 0 vote153 views1 answer
- 5 votes163 views3 answers
- 2 votes167 views1 answer
- 0 vote173 views1 answer