/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
- 2 votes124 views1 answer
- 0 vote133 views1 answer
- 3 votes126 views4 answers
- 6 votes127 views6 answers
- 0 vote121 views1 answer
- 1 vote128 views1 answer
- 0 vote117 views1 answer
- 0 vote78 views1 answer
- 0 vote143 views3 answers
- -2 votes148 views3 answers