CURRICULUM // CORE.101 // WEEK_5
Week 5 · Code to Create
Functions
Units
MODULE_BREAKDOWN
UnitTopicFormatTime
5.1Why functions? DRY principleUnderstand benefitMotivational video10 min
5.2Function syntax: def, parameters, returnWrite & call functionInteractive lesson20 min
5.3Function parameters & defaultsWrite function with 2-3 paramsLive coding15 min
5.4Return values & multiple returnsReturn single & multiple valuesLesson12 min
5.5Exercise: Function writing challengesWrite 5 functions, increasing complexityAuto-graded35 min
5.6Refactoring old code into functionsConvert old project to use functionsGuided walkthrough20 min
PROJECTCalculator module (add, subtract, multiply, divide)Test all 4 operationsBuild50 min
STUDY HALLThursday 6pm: Functions deep diveQ&A, peer code reviewLive session1 hr
Rewards
XP_AND_BADGES
XP allocation50 each, 100 project, 150 (if peer review) = 600 XP