// resources

Resources

// Cheatsheet
pass / continue / break — The Full Picture
pass / continue / break — The Full Picture. Three tools, three jobs. Side by side, with for...else, search pattern, and…
[ download ]
// Code Example
random_module.py
random — randint() and choice(). Set the boundaries, let Python fill in the surprise.
20 downloads 04 May 2026 → Let Python roll the dice
[ download ]
// Code Example
while_loops.py
while — repeats as long as a condition is True. You control what changes. The loop controls when it stops.
20 downloads 04 May 2026 → A new kind of loop
[ download ]
// Code Example
while_complex_conditions.py
while with and, or, not — multiple conditions, smarter loops. All conditions matter.
20 downloads 04 May 2026 → More conditions, smarter loop
[ download ]
// Code Example
while_true_break.py
while True + break — the infinite loop you control. Run forever, stop on purpose. Input validation is the classic use c…
[ download ]
// Code Example
while_random.py
while + random — the loop that stops when luck decides. Roll until you hit the target, count the attempts, never know h…
20 downloads 04 May 2026 → Roll until you win
[ download ]
// Code Example
while_else.py
while...else — else runs when the loop completes naturally. Skipped when break interrupts. Completed or interrupted — w…
20 downloads 04 May 2026 → while also has a plan B
[ download ]
// Exercise
accumulator.py
Accumulator — while True + break. Keep adding numbers until you say stop. Total and count — both ready at the end.
21 downloads 04 May 2026 → WHILE Mini Project — Accumulator
[ download ]
// Exercise
rock_paper_scissors.py
Rock, Paper, Scissors — while counts the rounds, random plays for the computer, continue handles invalid input. A full …
[ download ]
// Other
while_mistakes.py
5 mistakes almost every beginner makes with while. Infinite loops, false conditions, missing break, invalid input, off …
26 downloads 04 May 2026 → Common WHILE Mistakes
[ download ]
// Cheatsheet
while loops — The Full Picture
while loops — The Full Picture. random, while, complex conditions, while True + break, while + random, while...else, co…
22 downloads 04 May 2026 → while loops — The Full Picture
[ download ]
// Achievement
while_complete_medal.stl
You finished the WHILE chapter. Download, print, and keep it. You earned it.
25 downloads 04 May 2026 → This One's Yours — WHILE
[ download ]
// Code Example
match_case.py
match / case — one value, many cases. Cleaner than long if / elif chains. Wildcard case _, multiple values with |, firs…
19 downloads 04 May 2026 → One value. Many cases.
[ download ]
// Code Example
match_case_guards.py
match / case with guards — not just values, conditions too. Pattern captures the value, guard adds the condition. Toget…
20 downloads 04 May 2026 → Not just values — conditions too
[ download ]
// Exercise
vending_machine.py
Vending Machine — match identifies the product, if handles the payment. Change calculated, unknown products caught by c…
[ download ]