Workshop 2: Making computing your own
Conditionals and loops: comparison operators, if, elif and else branching, while loops, and for loops.
- 15 lessons
- 2 parts
- Finish Workshop 1 first.
Your lessons, in order
Work from top to bottom. Lessons teach a new idea, then practice and challenges let you use it. Tick "Done" as you finish each one.
Part 1 Conditionals
Part 2 Loops
Part 3 Maze game
Answer keys
Try each exercise on your own first. Keys open in Google Colab, which needs a Google account.
- 2.4 While loop exercise key (opens Google Colab in a new tab)
- 2.7 For loop exercise key (opens Google Colab in a new tab)
Keys for the other exercises are coming soon.
Up next: Workshop 3
Writing your own functions and using them to break a problem into smaller pieces.
Go to Workshop 3