Key Topics
- Computational Thinking
- Expressions and Variables
- Conditional Execution
- Functions
- Testing
Computational Thinking
- Breaking problems down into computational steps
Expressions and Variables
- Expressions can be evaluated to produce a value
- Variables are named containers for values
Conditional Execution
if can be used to conditionally execute a section of
code
elif and else can provide
alternatives
Functions
- Functions provide named sets of instructions that can be called
- Many built-in functions exist (
input, min,
etc)
- Custom functions can be created using
def
Testing
- Software testing is the act of checking whether software satisfies
expectations
- Testable code is often more modular and easier to reason about