...

Chapter 1 - Python Quest

Starter Python

Small functions, strings, choices, loops, and the first collection moves.

XP
0Level 1
Stars
0/30quest stars
Combo
0clean runs
Rank
Seed0/160 Python score
Functions and numbers

Apple Counter

100 XP

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)returns5

Explanation: small snack table

total_apples(0, 4)returns4

Explanation: only green apples

Hint

Hints are ready when you want one.

Your Python

total_apples

Loading editor

Judge

Ready

0/4

Run your code when it feels ready.