CORE PYTHON FOUNDATION · MODULE 3 CAPSTONE · UNITS 9–11
Build the Hero Hub
You are a junior game developer at CodeQuest Studios. Nova now needs a real player-management system. Build reusable skill functions, create a changing inventory, and organize complete character profiles with dictionaries. By the final challenge, all three systems will work together.
What You Will Apply
Unit 9 · Advanced FunctionsUse parameters, return values, conditions inside functions, and multiple functions working together to create a Player Skill Manager.
Unit 10 · ListsCreate, access, change, loop through, append, remove, and pop items to build a Player Inventory System.
Unit 11 · DictionariesCreate character profiles, access and update keys, loop through stats, and combine lists with dictionaries to build a Character Profile Database.
Teen-friendly design: Each challenge focuses on one main idea with short readable Python. The capstone stays within concepts taught in Units 9–11—no classes, files, or advanced libraries. Use Run & Verify, two hints, the AI Tutor, and the solution unlock after three failed attempts.
Your Game Mission
Build the systems behind a hero-management screen. Nova’s skills must be calculated and upgraded, her inventory must change as she finds or drops items, and her character profile must store organized game stats.
Player Skill ManagerUse reusable functions to calculate, upgrade, and display skills.
Player Inventory SystemStore loot in lists and add, remove, change, and display items.
Character Profile DatabaseStore labelled character stats with dictionaries and manage multiple profiles.
def upgrade_skill(power, boost):
return power + boost
inventory = [“Sword”, “Potion”]
player = {“name”: “Nova”, “level”: 5}
Capstone flow: advanced functions → player skills → inventory lists → character dictionaries → final connected Hero Hub.
DataSoSi Teen Python Project
Core Python Foundation · Module 3 Capstone · Build the Hero Hub
Game Challenge
Module 3 rule: Build the system in small pieces. Use the list, dictionary, or function method requested in the challenge and make sure you can explain what changed.
Python Game Lab
In [ ]:
Output:
Loading Python…
AI Tutor
✦ Hero Hub Coding Tutor
Ask me about the current challenge. I will keep explanations short, teen-friendly, and focused on the exact Module 3 skill you are practising.