Discussion 0 Summary
Question 1: Lost On The Moon
Core Concepts: Start thinking logically, getting to know your classmates, working at NASA
Tricky Details: N/A
Usefulness Rating: ⭐️
Question 2: Python Basics
Core Concepts: Familiarity with Python shell, core operations (+, -, /, //, %, **), assignments
- Operator Precedence and Associativity (Helpful Article)
Assignment statements are not like normal statements. They don't display anything on the terminal.
>>> a = 3
- Compound operators exist in Python (+=, -=). For example, a += 3 is equivalent to a = a + 3.
Variables are locations in memory that have a name and store some information and have a name. For example, a = 3 is a place in memory with name
3stored in it.
- Variables can be reassigned as many times as we want.
- Think of variables as a lookup system. If we work at a grocery market, and broccoli is scanned with the ID 2022394, we can assign broccoli = 2022394 and never have to worry about remembering the number. Moreover, if we were to use the number elsewhere, we would have to change it in so many places. Instead, we can just resassign broccoli if the code for broccoli changes.
Usefulness Rating: ⭐️⭐️