Chapter 1 - Python Quest
Starter Python
Small functions, strings, choices, loops, and the first collection moves.
XP
0Level 1Stars
0/30quest starsCombo
0clean runsRank
Seed0/160 Python scoreFunctions and numbers
100 XPApple Counter
Two friends picked apples for a snack table. Add the red apples and green apples together.
Write total_apples(red, green) so it returns the total number of apples.
Sample checks
total_apples(2, 3)returns5Explanation: small snack table
total_apples(0, 4)returns4Explanation: only green apples
Hint
Hints are ready when you want one.
Your Python
total_apples
Loading editor
Judge
Ready
Run your code when it feels ready.
