π§ How this works β full-stack in 10 seconds
You're building a full-stack app:
- Backend Your Python is the server. It takes inputs and
returns a value. - Frontend The HTML/CSS/JS is what you see. When you click, it calls the backend with
api.call("name", ...).
Edit any tab β it runs live. Interact with your app to run your Python, then press Check my work.
π In the Think in Pipelines track you rebuild MongoDB aggregation stages in plain Python, then race a real database β the scoreboard shows how many lines MongoDB saves.
π
Lesson
Beginner
1
π MongoDB
vs
11
π Python
91%
less code
π‘ Hints
π Show solution
def solve():
Edits run live β interact with your app to call your Python.
β¨
Code with Cody
Tell Cody what you want β it edits the part you're working on.
β¨
Your App
Booting Pythonβ¦
Interact with your app to call your Python β
Downloading Python (WebAssembly)β¦
First load only β it gets cached after this.π₯ Input documents
π Second collection
π The MongoDB pipeline
π Your Python output
Press βCheck my workβ to run your Python β
π Real MongoDB output
Press βRun the real $stageβ β
Console