tutorial |
---|
-
The function
add_numbers
is supposed to return the sum of 2 given numbers, please complete the needed code inside the function to make it behave as expected. -
The exercise should print the number 7 in the console.
- There is a function
add_numbers
already declared, it receives 2 parameters (variablesa
andb
). As a developer, you were given the task to fill the function's body with the code needed to sum variablea
with variableb
and return the result of that operation.
For more practice with functions, 4Geeks Academy has more than 20 exercises that increase in difficulty: https://github.com/4GeeksAcademy/python-functions-programming-exercises.
Try them, and then come back! 😃