Practice workspace · Untimed
Try a coding test
Edit Python, run a sample, and submit for a practice score.
- Read & edit
- Run a sample
- Submit your answer
- Complete
Challenge 1 of 2
Add two numbers
Return the sum of the two integers.
- Sample input
- add(2, 3)
- Expected output
- 5
Show a hint
Replace return 0 with return a + b. Keep the indentation before return.
This is a demo. Your code and practice score stay in this tab.
Enter keeps indentation · Tab moves to the next control
Test output
Run the sample to see your output here.