// resources

Resources

// Code Example
type_conversion.py
int(), float(), str(), bool() — switch between types with confidence. With real examples and what not to try.
33 downloads 29 Apr 2026 → Switch Between Types
[ download ]
// Code Example
print_advanced.py
f-strings with format specs — floats, alignment, thousands separators, percentages. Your output, fully under control.
34 downloads 29 Apr 2026 → Format Your Output Like Picasso
[ download ]
// Code Example
if_statement.py
if statement — comparison operators, True/False conditions, real use cases. Your code runs only when it should.
[ download ]
// Code Example
else_statement.py
if / else — the fallback that guarantees one block always runs. Every decision, both sides covered.
33 downloads 30 Apr 2026 → The other side of the decision
[ download ]
// Code Example
elif_statement.py
elif — chain multiple conditions, first match wins. Order matters, most specific goes first.
33 downloads 30 Apr 2026 → Split the decision. Again.
[ download ]
// Exercise
pace_communications.py
PACE decision system — if / elif / else in action. Four conditions, four protocols, zero silence.
[ download ]
// Exercise
ticket_pricing.py
Ticket pricing system — if / elif / else for categories, and for the window seat surcharge. Two decisions, one final pr…
[ download ]
// Other
if_mistakes.py
6 mistakes almost every beginner makes with if. Wrong way, error, right way — all in one file.
42 downloads 30 Apr 2026 → Common IF Mistakes
[ download ]
// Cheatsheet
if / elif / else — The Full Picture
if / elif / else — The Full Picture. Everything you've learned about conditions — in one place. Comparison operators, l…
[ download ]
// Achievement
if_complete_medal.stl
You finished the IF chapter. Download, print, and keep it. You earned it.
38 downloads 30 Apr 2026 → This One's Yours — IF
[ download ]
// Code Example
ternary_operator.py
Ternary operator — if / else compressed to one line. Syntax, examples, common mistakes, and when to use the full form i…
[ download ]
// Exercise
ticket_pricing_2.py
Ticket pricing rewritten with ternary — where it works, where it doesn't, and why the window seat line is the ideal use…
[ download ]
// Code Example
for_loops.py
for loops — iterating over strings, updating variables with +=, and understanding len(). Write it once, the loop handle…
33 downloads 01 May 2026 → The loop that does the work for you
[ download ]
// Code Example
range_function.py
range() — stop, start/stop, step, counting backwards, and combining with len(). Tell Python the boundaries, it handles …
33 downloads 01 May 2026 → From here to there — range()
[ download ]
// Code Example
loop_counter.py
Loop counter — +=, -=, *= inside a loop. Define before, update inside, use after. Track everything that happens iterati…
33 downloads 01 May 2026 → Keeping score — the loop counter
[ download ]