Skip to content

Commit

Permalink
update lesson 3 notes
Browse files Browse the repository at this point in the history
  • Loading branch information
jontsai committed Jul 21, 2024
1 parent 08ab976 commit e235d7e
Showing 1 changed file with 28 additions and 1 deletion.
29 changes: 28 additions & 1 deletion lessons/lesson3.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,36 @@ Lesson Date: 2024-07-14

### Topics

- Lab-only, no lecture.
- Primarily lab-only, no lecture.
- Students should bring their laptops and expect to write code (or if they haven't yet, get help with setting up their IDEs to write some code), or pair up with other students and write code together.
- Most of programming is solving complex word problems
- Being a good programmer has helped me to become a better theologoian and student of the Bible, and vice versa.
- `while` loops in the Bible that convey the responsibility, joy, and privilege of worshiping God:
- [Psalm 104:33](https://awesome.bible/bible?q=Psalms+104%3A33)
- [Psalm 146:2](https://awesome.bible/bible?q=Psalms+146%3A2)
- Work through [Exercism Python](https://exercism.org/tracks/python) exercises together as a class.
- [Hello World](https://exercism.org/tracks/python/exercises/hello-world)
- [Guido's Gorgeous Lasgana](https://exercism.org/tracks/python/exercises/guidos-gorgeous-lasagna)
- **Everything** is an object in Python
- Objects have properties and methods
- `dir(obj)` can be called with an object to see what properties and methods are available on the object
- **Objects** are **instances** of **classes**
- **objects*8
- [Ghost Gobble Arcade Game](https://exercism.org/tracks/python/exercises/ghost-gobble-arcade-game)
- Boolean logic / [Boolean algebra](https://en.wikipedia.org/wiki/Boolean_algebra)
- Named after [George Boole](https://en.wikipedia.org/wiki/George_Boole)
- Basic operations: **conjuction** (and), **disjunction** (or), **negation** (not)
- Truth tables can be useful in helping to visualize relationships between inputs and outputs
- Negation Equivalencies:
- `not(A and B) == not(A) or not(B)`
- `not(A or B) == not(A) and not(B)`

### Reading / Notes

- Biography of a famous computer scientist: [Grace Hopper](https://en.wikipedia.org/wiki/Grace_Hopper)
- Famous [quote](https://en.wikiquote.org/wiki/Grace_Hopper): **It's easier to ask forgiveness than it is to get permission.**
- Variant: "That brings me to the most important piece of advice that I can give to all of you: if you've got a good idea, and it's a contribution, I want you to go ahead and DO IT. It is much easier to apologize than it is to get permission."

### Homework

- Complete as many Exercism exercises as possible, with a minimum of completing Python exercise #2, Guido's Gorgeous Lasagna

0 comments on commit e235d7e

Please sign in to comment.