← Back to the lesson: Functions
Add Two Numbers
The exercise
Create a function 'add' that takes two numbers and returns their sum.
Call: add(10, 20) and print the result.
Expected output: 30
Starter code
# Define add function / Определите функцию add
# Call and print / Вызовите и выведите
Write the code in the browser and run it — no installation needed.