Level 34 of 50
Parameters & return
explained with rickshaw fares. Watch the reel, then work through it below: run the code, take the quiz, keep the cheat sheet.
📒 Open the cheat sheetSanaRickshaw wala says Rs 30 a km. So, 5 km?
TeacherLet a function do the maths, and hand back the answer!
fare.py
def fare(km): return km * 30 print(fare(5))
Teacherkm is the parameter. return sends the answer back!
SanaWhy return? Why not just print?
fare.py
def fare(km): return km * 30 total = fare(5) + fare(3) print(total)
Teacherreturn gives you a value to use again! Two rides, added up!
⏸ Pause & predict: what prints?
def add(a, b): a + b print(add(2, 3))
Where this leads
Python is step one. Building AI that ships is the rest.
The diploma takes you from zero to deployed computer vision, LLM and agent projects, with engineers who build them for a living. Already code? The bootcamp does it in three months.