/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 vote206 views1 answer
- 0 vote248 views1 answer
- 1 vote249 views1 answer
- 0 vote211 views1 answer
- 1 vote232 views2 answers
- 8 votes243 views2 answers
- 0 vote227 views1 answer
- 12 votes237 views6 answers
- 2 votes216 views1 answer
- 10 votes208 views3 answers