From d81e454825e5846e185a851b9ddbb34455cde01c Mon Sep 17 00:00:00 2001 From: Cam Date: Wed, 10 Jan 2018 18:39:27 -0500 Subject: [PATCH 1/3] Update slack links for the new class --- class1.html | 2 +- class2.html | 2 +- class3.html | 2 +- class4.html | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/class1.html b/class1.html index fb8a35a..f5c668c 100644 --- a/class1.html +++ b/class1.html @@ -442,7 +442,7 @@

Homework

Want help?

diff --git a/class2.html b/class2.html index 991b5c6..6c1b3e6 100644 --- a/class2.html +++ b/class2.html @@ -509,7 +509,7 @@
http://learnpython

Want help?

diff --git a/class3.html b/class3.html index 0f4c8d4..b1e7d08 100644 --- a/class3.html +++ b/class3.html @@ -447,7 +447,7 @@

Homework

Want help?

diff --git a/class4.html b/class4.html index 85747cc..9fd1ba2 100644 --- a/class4.html +++ b/class4.html @@ -326,7 +326,7 @@

Questions?

Wanna chat Python?

-

#python

+

#python

Not on Slack? bit.ly/gdiaa-slack

From 46ee4c9bff61849b89bc467e39ddad5c7fe06f86 Mon Sep 17 00:00:00 2001 From: Cam Date: Sat, 20 Jan 2018 14:45:37 -0500 Subject: [PATCH 2/3] Get rid of confusing sections --- class1.html | 31 ------------------------------- class2.html | 14 -------------- 2 files changed, 45 deletions(-) diff --git a/class1.html b/class1.html index f5c668c..50233f5 100644 --- a/class1.html +++ b/class1.html @@ -278,37 +278,6 @@

Data types - continued ...

- -
-
-

Errors

-
    -
  • There are different kinds of errors that can occur.
    We've seen a few already.
  • -
  • A "runtime error" results in an Exception, which has several types.
    Each type gives us some information about the nature of the error and how to correct it
  • -
  • One type of exception is a SyntaxError. This results when our code can not be evaluated because it is incorrect at a syntactic level.
    In other words, we are not following the "rules" of the language.
  • -
  • Some other examples are the TypeError and NameError exceptions.
  • -
-
- -
-

Errors - continued ...

-

-# 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.

-
-
-

Let's Develop It

diff --git a/class2.html b/class2.html index 6c1b3e6..7b15c5a 100644 --- a/class2.html +++ b/class2.html @@ -172,20 +172,6 @@

Chained conditionals

-
-

Nested conditionals

-

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')
-                        
-
-

Let's Develop It

From 523b9885b896b591ebed03a1dee4c15df953297f Mon Sep 17 00:00:00 2001 From: Cam Date: Sat, 20 Jan 2018 14:47:37 -0500 Subject: [PATCH 3/3] Remove examples that are now behind a paywall --- class2.html | 9 --------- 1 file changed, 9 deletions(-) diff --git a/class2.html b/class2.html index 7b15c5a..403beae 100644 --- a/class2.html +++ b/class2.html @@ -483,15 +483,6 @@

Optional Function Practice

-
-

Boolean Practice

- -

Do this excercise from Learn Python The Hard Way

- Make sure to do these problems by hand, not with python! - -
http://learnpythonthehardway.org/book/ex28.html
-
-

Want help?