Week 6
Readings
Readings
Textbook
- Log on to your online textbook
- Read the following sections from your textbook
- 2.1 Values and Types
- 2.2. Variables
- 2.3. Variable names and keywords
- 2.4. Statements
- 2.5. Operators and operands
- 2.6. Expressions
- 2.7. Order of operations
- 2.8. Modulus operator
- 2.9. String operations
- 2.10. Asking the user for input
- 2.11. Comments
- 2.12. Choosing mnemonic variable names
- 2.13. Debugging
Additional Explanations (Podcasts)
These videos add to the previous formal lessons. They are here as extra explanation on certain topics. Most cover things that aren't standards BUT will help make the learning process easier in the long run.
- VIDEO: A few thoughts about Chapter 2.
- VIDEO: Our four primitive data types [int, float, str, bool] (Fairly important to understand)
- VIDEO: Two types of quotation marks? (Moderately important to understands)
- VIDEO: What the flip is PEP 8 and what do we care? (Clarification)
- LINK: Official PEP 8 Document
- LINK: Summary of PEP 8 Document
- VIDEO: The "suite" of division operators [ /, //, % ] (This is VERY important to understand)
- VIDEO: The shortcut assignment operators [ +=, -=, *=, /= ] (Not something I will use in this course but something the book showed you).
- VIDEO: A little bit about Python special/escape characters [ \n, \t, \\ ] (Not something we will use until much later in the course, but something the book showed you).
- VIDEO: Explaining Assignment Statements (using Activity 2.4.2 from Runestone)