/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
- 3 votes194 views1 answer
- 5 votes174 views3 answers
- 0 vote162 views4 answers
- 2 votes188 views1 answer
- 0 vote169 views1 answer
- 0 vote168 views1 answer
- 6 votes172 views2 answers
- 0 vote168 views1 answer
- 0 vote180 views1 answer
- 6 votes164 views1 answer