// resources
Resources
All
|
Cheatsheet
Code Example
Exercise
Template
Other
Achievement
|
Basics
Control Flow
Functions
Data Structures
Modules & Packages
Projects
Object-oriented programming
|
↑ oldest first
↓ newest first
// Exercise
caesar_cipher.py
Caesar Cipher — enumerate() + modulo to shift and wrap the alphabet. Loop through every letter, encrypt like Caesar.
// Exercise
form_wannabe.py
Form Wannabe — for loop drives an interactive sequence. One field at a time, one question at a time. No list, no databa…
// Other
for_mistakes.py
6 mistakes almost every beginner makes with for. Wrong way, error, right way — all in one file.
// Cheatsheet
for loops — The Full Picture
for loops — The Full Picture. Everything you've learned about for loops — in one place. range(), counters, enumerate(),…
// Achievement
for_complete_medal.stl
You finished the FOR chapter. Download, print, and keep it. You earned it.
// Code Example
pass_statement.py
pass — the statement that does nothing, intentionally. A placeholder that keeps Python satisfied while you're not ready…
// Code Example
continue_statement.py
continue — skips the rest of the current iteration and moves to the next. The loop never stops, it just moves on.
// Code Example
for_if_pattern.py
for + if — the most common pattern in Python. The loop visits everything, the if decides what to do with each visit.
// Code Example
break_statement.py
break — stops the loop immediately. No more iterations, no more checks. The loop stops when the job is done.
// Code Example
for_else.py
for...else — else runs when the loop completes without break. Skipped when interrupted. The difference between "done" a…
// Exercise
password_strength_checker.py
Password Strength Checker — for + if visits every character, flags track what's found. Four checks, one verdict.
// Exercise
pig_latin.py
Pig Latin Translator — for + if + continue. Loop through every word, skip what's too short, translate the rest.
// Other
pass_continue_break_mistakes.py
5 mistakes almost every beginner makes with pass, continue, and break. Pass holds, continue skips, break stops — three …
// 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…
// Code Example
random_module.py
random — randint() and choice(). Set the boundaries, let Python fill in the surprise.