/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 vote146 views1 answer
- 0 vote139 views1 answer
- 3 votes177 views2 answers
- 140 votes152 views3 answers
- 0 vote192 views1 answer
- 0 vote159 views1 answer
- 0 vote171 views1 answer
- 13 votes138 views3 answers
- 30 votes140 views3 answers
- 1 vote134 views2 answers