Past Lesson Note

This note is from 3 days ago. You're viewing content from a previous lesson.

Daily Note for September 9, 2026 Past Lesson

Today we wil start learning about loops. 

Please click this link to see the page about loops.

A loop is a way of making a computer repeat an action — without writing that action out over and over again. Loops are one of the most powerful ideas in programming: they let a program process ten items or ten million items with the same few lines of code. Python has two kinds of loop, each suited to a different situation: the while loop repeats as long as a condition is true, and the for loop steps through a collection one item at a time.

Fun fact: when you know conditionals, variables, and conditionals, you have almost all the basics to build complex programs!

 

If we have time, we will implement a menu system (look for menu.py) from a github repository. Copy this file into a new file named menu.py and predict what you think it will do. Only then should you try to run it.