diff --git a/class1.html b/class1.html index fb8a35a..50233f5 100644 --- a/class1.html +++ b/class1.html @@ -278,37 +278,6 @@
-# SyntaxError - Doesn't conform to the rules of Python.
-# This statement isn't meaningful to the computer
-4spam)eggs(garbage) + 10
-
-# NameError - Using a name that hasn't been defined yet
-a = 5
-print(d)
-d = 10
-
-# TypeError - Using an object in a way that its type does not support
-'string1' - 'string2'
-
There are also semantic errors.
These are harder to catch because the computer can't catch them for us.
Conditionals can also be nested
-Nested conditionals occur inside of other conditionals and are indented over once more.
When the code block is complete, they are unindented
-
- if x > 5:
- print('x is greater than 5')
- if x > 10:
- print('...it is also greater than 10')
- print('Done evaluating the x > 10 block')
- print('Done evaluating the x > 5 block')
-
Do this excercise from Learn Python The Hard Way
- Make sure to do these problems by hand, not with python! - -