Skip to content

Commit 9ec547a

Browse files
authored
Merge pull request #67 from lironmiz/unit3-Ex3.3.1
Create unit3_ex3.3.1.py
2 parents 3595157 + f6d6a7e commit 9ec547a

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)