First programs · warm-up
Add two numbers
Read two whole numbers, one per line, and print their sum.
input() always gives you text. "2" + "3" is "23" — turn the text into a number with int() first.
- right answers
Stuck on the idea rather than the code? The Your first program lesson walks through it.