Skip to content

Commit f6d6a7e

Browse files
authored
Create unit3_ex3.3.1.py
1 parent 3595157 commit f6d6a7e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

unit3_ex3.3.1.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)