LINKEDKEY · PYTHON 3 · CCC JUNIOR

Course Home — Visual Lessons & Animations

This is the one front door for the whole course. Every lesson, every animation page, every practice demo lives behind this page — bookmark this one, share this one, and nothing gets lost.

Teacher tip: in class, project from here. Students at home start here too.

Question Bank — worked solutions, one question per page

Worked solutions open step by step: question first, the idea, the sample walked through, then the code. Pages marked 🔒 ask for the class code your teacher gives you; the rest are open.

🛣️2018 J3 · Are We There Yet?Five cities, four gaps, a 25-cell distance table. Prefix sums do it all.
Open the worked solution →
🔺2023 J4/S1 · TrianglaneTape around wet triangles: count generously, then subtract shared sides — even columns only.
Open the worked solution →
📚2021 J4 · Arranging BooksMinimum swaps for L-M-S: zones, direct pairs, and 3-cycles.
Open the worked solution →
⚾2017 S1 · Sum GameTwo lists of daily runs: compare running totals, keep the LAST tied day.
Open the worked solution →
🐌2026 J4 · Snail PathOne square at a time, a set of slimy squares, count the re-entries.
Open the worked solution →
🎤2004 S2 · TopYodellerCumulative scores and shared ranks — and the winner's worst rank ever.
Open the worked solution →
🔒2015 J2 · Happy or SadCount :-) and :-( in a message — a substring scan with a three-way verdict.
Code-locked — type the class code your teacher gives you.
Open (code needed) →
🔒2016 J3 · Hidden PalindromeTry every substring, keep the longest palindrome hiding in the word.
Code-locked — type the class code your teacher gives you.
Open (code needed) →
🔒2017 J4 · Favourite TimesClock times whose digits form an arithmetic sequence — search a whole cycle, then repeat it.
Code-locked — type the class code your teacher gives you.
Open (code needed) →
🔒2020 J4 · Cyclic ShiftsRotate the string every possible way and test whether a rotation hides in the text.
Code-locked — type the class code your teacher gives you.
Open (code needed) →
🔒2013 J5/S3 · Chances of WinningA four-team round robin: play out every remaining outcome and find the favourite's title chances.
Code-locked — type the class code your teacher gives you.
Open (code needed) →
🔒2011 J5 · UnfriendMark leaves the network — who is still connected to whom? Groups on a friendship graph.
Code-locked — type the class code your teacher gives you.
Open (code needed) →
🔒2018 J5 · Choose Your Own PathA book of choices: BFS checks every page can be reached and finds the shortest story — count pages, not edges.
Code-locked — type the class code your teacher gives you.
Open (code needed) →
🔒2013 J4 · Time on TaskChores against the clock: shortest first — the cheapest-first greedy template wearing a chore list.
Code-locked — type the class code your teacher gives you.
Open (code needed) →
🔒2017 S2 · High Tide, Low TideSort, split the halves, then zip falling lows with rising highs to rebuild the lost measurement order.
Code-locked — type the class code your teacher gives you.
Open (code needed) →
🔒2015 S3 · GatesEvery plane takes the largest free gate it is allowed — park one plane wrong and the airport closes early.
Code-locked — type the class code your teacher gives you.
Open (code needed) →
🔤2023 J5 · Word HuntWorked solution with animation — inside the Lesson 8 practice page (Problem 1).
Jump to the worked solution →
🥧2015 J5 · Pi DayWorked solution with animation — inside the Lesson 8 practice page (Problem 2).
Jump to the worked solution →
🔀2019 J5 · Rule of ThreeWorked solution with animation — inside the Lesson 8 practice page (Problem 3).
Jump to the worked solution →
🌾2024 J5 · Harvest WaterlooWorked solution with animation — inside the Lesson 8 practice page (Problem 5).
Jump to the worked solution →
🚪2020 J5/S2 · Escape RoomWorked solution with animation — inside the Lesson 8 practice page (Problem 6).
Jump to the worked solution →

Coming next

Each new lesson gets one block like the one above — a concept page and a practice page, added here. This front door never changes; everything behind it can grow.

Lesson 13Not built yet. Same pattern: one lesson, two pages, one card each — no loose files to hunt for.
How this stays tidy as the course grows: one folder, one index.html front door. Students only ever need this single page — every lesson is two clicks away, and every lesson page has a ⌂ Course Home button at the top that brings you back here.