Unit 4 · 3 lessons
Coding with Python
Use Python to store values in variables, evaluate formulas, build tables of values and patterns with loops, and test inequalities with conditionals, then read code and change it to model new situations.
- 34 practice questions
- 22 flashcards
- 3 interactive lessons
Lessons
- 1Variables, Expressions and Output in PythonWrite short Python programs that store values in variables, evaluate expressions with the correct order of operations, print results, and use parameters you can change and rerun.Interactive11 questions
- 2Loops: Patterns and Tables of ValuesUse a for loop with range to repeat a calculation, build a table of values for a relation such as y = 3x + 2, describe growing patterns, and keep a running total.Interactive11 questions
- 3Conditionals, Inequalities and Altering CodeUse comparison operators as inequalities, make decisions with if, elif and else, test which values satisfy an inequality, and read and alter a program that compares two phone plans.Interactive12 questions