🎯 Learning Intention

Today I will learn how while Loops can model IT troubleshooting steps and understand how repetition supports system recovery.

βœ… Success Criteria

I can explain how a loop in Python is like repeating troubleshooting steps, and I can write a simple while loop loop that models retry logic.

🌍 Why Are We Learning This?

Technicians rarely fix a system on the first try β€” they repeat steps until the problem is solved. Programming uses the same idea: loops that keep running until the condition is met.


🧠 Warm-Up – Tech Journal Prompt

πŸ’‘ β€œThink of a time you had to try more than once to fix or finish something (schoolwork, tech, even cooking). What did repeating teach you?”


πŸ“š Word of the Day

Loop


πŸ“£ Formative Lecture & Mini-Demo (12–15 min)

connected = False
attempts = 0

while not connected and attempts < 3:
    print("Checking Wi-Fi...")
    attempts += 1
    # pretend to test connection
    if attempts == 2:
        connected = True
        print("Connected on attempt", attempts)

print("Done.")