Creating a function for simple addition

Report a typo

You are constructing a simple Python program that involves working with functions and integer arithmetic, specifically addition. You want to create a function that takes two numbers as input parameters and returns the sum of the numbers as an output. Fill the blanks in the provided code to accomplish this task.

Fill in the gaps with the relevant elements
 sum_numbers(a, b):
     (a + b)

result = sum_numbers(5, 7)
print(result)
returnstrdef

Create a free account to access the full topic