// blog

Articles

// Control Flow
WHILE Mini Project — Accumulator

The problem...
You need to add up numbers. But you don't know how many. Could be three. Could be thirty.
You keep going until you decide to stop.
The idea!
while True keeps as…

04 May 2026 1 min read files [1] comments [0] 22 views
// Control Flow
WHILE Mini Project — Rock, Paper, Scissors

The problem...
One round of Rock, Paper, Scissors means nothing. Best of three is a game. Best of however many you want — that's a real match.
You need a loop that runs a …

04 May 2026 2 min read files [1] comments [0] 22 views
// Control Flow
Common WHILE Mistakes

The problem...
Your loop runs forever. Or it never runs at all. Or it crashes on the first invalid input.
These are the mistakes almost every beginner makes with while. At least…

04 May 2026 2 min read files [1] comments [0] 23 views
// Control Flow
while loops — The Full Picture

The idea!
You've covered random, while, complex conditions, while True, while + random, and while...else.
This is your reference. Everything in one place.
Come back here whenev…

04 May 2026 1 min read files [1] comments [0] 20 views
// Control Flow
This One's Yours — WHILE

You did it.
And this one was different.
while doesn't know when it stops. You set the condition. You control what changes. You decide when enough is enough.
random. while. and,…

04 May 2026 1 min read files [1] comments [0] 24 views
// Control Flow
One value. Many cases.

The problem...
You have one variable. And ten possible values it could be. So you write ten elif blocks.
It works. But it's long. Repetitive. And harder to read than it should b…

04 May 2026 1 min read files [1] comments [0] 21 views