Unit 5 · 5 lessons
Computer Programming
Variables, decisions, loops, lists and functions in Python — plus how to find the bug when it does not work.
- 48 practice questions
- 47 flashcards
Lessons
- 1Variables, Data Types and Input/OutputThe three things every program does — take input, work on it, produce output — and the variables that hold it all.10 questions
- 2Selection: if, elif and elseHow a program makes a decision, and how to write conditions that are actually correct at their boundaries.9 questions
- 3Loops: while and forRepeating work without repeating code — counters, accumulators, and how not to write an infinite loop.10 questions
- 4Lists and StringsStoring many values under one name, reaching them by index, and processing text.10 questions
- 5Functions, Errors and DebuggingPackaging code so it can be reused and tested, and a method for finding a bug instead of guessing at one.9 questions