We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3595157 + f6d6a7e commit 9ec547aCopy full SHA for 9ec547a
unit3_ex3.3.1.py
@@ -0,0 +1,12 @@
1
+# exercise 3.3.1 from unit 3
2
+'''
3
+try:
4
+ if '1' != 1:
5
+ raise "SomeError"
6
+ otherwise:
7
+ print("SomeError has not occurred")
8
+except "someError":
9
+ print("SomeError has occurred")
10
+What will happen after the program runs?
11
12
+# Answer: The program will crash due to incorrect code.
0 commit comments