/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
- 8 votes306 views3 answers
- 0 vote275 views1 answer
- 0 vote255 views1 answer
- 8 votes231 views1 answer
- 0 vote263 views1 answer
- 3 votes281 views2 answers
- 2 votes278 views1 answer
- 2 votes271 views1 answer
- 0 vote322 views1 answer
- 0 vote242 views1 answer