Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions unit3_ex3.3.1.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# exercise 3.3.1 from unit 3
'''
try:
if '1' != 1:
raise "SomeError"
otherwise:
print("SomeError has not occurred")
except "someError":
print("SomeError has occurred")
What will happen after the program runs?
'''
# Answer: The program will crash due to incorrect code.