Stored values only matter once you can combine and compare them. You'll calculate with Python's arithmetic operators, assemble readable messages from variables and text, put those skills together to solve real formula-based problems, and then evaluate comparisons and logical conditions that produce the true-or-false answers programs rely on to make decisions later.
Overview
Syllabus
- Unit 1: Calculating with Arithmetic Operators
- Adding Subtracting and Multiplying Variables
- Three Ways to Divide Numbers
- Raising Numbers to a Power
- Taking Control with Parentheses
- Unit 2: Building Python Strings
- Joining Text with the Plus Operator
- Embedding Names with f-strings
- Mixing Names and Numbers with f-strings
- Rewriting Concatenation as an f-string
- Unit 3: Solving Problems With Formulas
- Adding Tax to an Order
- Averaging Three Test Scores
- Splitting the Bill Among Friends
- From Text to Total
- Unit 4: Comparing Python Values
- Equal or Not Equal
- Ordering Numbers with Comparison Operators
- Saving a Comparison Result
- Comparing Words for a Match
- Unit 5: Combining Logical Operators
- Checking Two Conditions at Once
- Checking Alternatives with Or
- Flipping a Boolean Value
- Combining And with Not