diff --git a/unit3_ex3.3.1.py b/unit3_ex3.3.1.py new file mode 100644 index 0000000..d622353 --- /dev/null +++ b/unit3_ex3.3.1.py @@ -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.