Week 1: Basic#
- Welcome!
- Part 1: The Basics of Numbers and Variables
- Mystery Operator
- Variables
- Variable Declarations
- Variable Declarations, Part 2
- Operator Precedence
- Viral Twitter Math Problem
- Temperature Conversion Mixup
- Part 2: Using Functions
- Working on Your Abs
- Call Me, Maybe
- Nesting Function Calls
- Smaller of the Two
- Smaller of the Three
- Greatest Magnitude
- Part 3: A Datatype for Text
- Comma Chameleon
- Longest String
- Escaping
- Escaping Practice
- Part 4: Mixing Type is (Sometimes) an Error
- Which Throws an Error?
- Sum of Ints
- Part 5: Input and Output
- Copypasta
- Pleased to Meet you!
- Stretch Goals
- Defining Our Own Functions
- Cubes
- Triangle Time
- I Am Very Excited!!!!!!!
- Floating Point Numbers, Redux
- Which Are Floats?
- Which Are Integers?
- There and Back Again: Converting Between Integers and Floats
- Converting with int to float
- Adding, Subtracting, Multiplying and Dividing with Floating-Point Numbers
- Does It float?
- It Dosen’t Float!
- Division: / versus //
- Does It Float Again?
- Conversions and Promotions
- Introduction to Booleans
- Boolean Expressions
- Expressions Yielding True
- Expressions Yielding False
- Boolean Expressions Using Variables
- Writing Boolean Expressions
- Functions Returning Booleans
- Booleans Summary
- Conditioning on Booleans with If Statements
- Validating Values
- More Conditions
- Room Assignments
- Default Conditions
- Passing Grades
- Characterizing Numbers
- Computing the Lengths of Strings
- Name Length
- Indexing
- Safe Indexing
- Slicing
- Slicing (without Dicing)
- String Comparison
- Using `in` and `not in` Operators
- Comparing Strings
- String Membership
- Passing Arguments to Functions
- What’s good about functions?
- Parameters vs. arguments
- Parameter names vs. argument names
- Shared names and shadowing
- Guten Tag!
- The call stack
- What’s On Your Stack?
- Scope: local vs. global
- Local variables only exist during function calls
- Characteristics of local and global variables
- Reading Code
- Updating global variables from inside a function
- You can count on me!