While Loop
Domain: Programming Fundamentals
🎯 Motivation
When you don’t know how many times to repeat, but you know when to stop - keep going until a condition changes.
📋 Concrete Example
while lives > 0: play_round() - keeps playing as long as the player has lives left.
🔗 Analogy
Running laps around a track - you keep running while you still have energy. When energy hits zero, you stop.