Code Toolkit: Python, Fall 2021

Week 2 — Wednesday, September 8 — Class notes

Review of what we've done so far

We were rushed at the end of class last week, so let's go back to that material and discuss some things that will be review for you now that you've made it through the first homework.

Examples from homework review

Let's review some people's homework ...

Click the example links here to view, or right-click to download and rename the file from .txt to .pyde to open with Processing.

Please wait here!

Everyone learns at a different pace. As we're going through a lesson together (especially when the lesson notes include incremental step-by-step code examples) I encourage you to move at a pace that is comfortable and exciting for you, even if that means getting ahead of me and the class. But, there are certain topics where a bit of background explanation will help a lot before jumping in. For these, I will include some "Please wait" moments throughout my class notes. If you are blazing ahead and encounter one of these, please wait! The next thing you are about to encounter will make more sense with some explanation, which we will do together as a class. Each "wait" request will include suggestions of some other things that you can experiment with as you wait for the class to catch up!

Variables

Please wait here!

If you've gotten this far before the rest of the class, wait here and maybe experiment with using variables for the RGB portion of the color() command. Can you create a sketch that generates randomized shades of blue?

Randomness