/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
- 1 vote201 views1 answer
- 0 vote222 views1 answer
- 5 votes207 views4 answers
- 0 vote235 views1 answer
- 2 votes219 views2 answers
- 1 vote202 views1 answer
- 3 votes166 views1 answer
- 0 vote213 views1 answer
- 0 vote217 views1 answer
- 46 votes210 views6 answers