def add(a, b):
result = a + b
return result
sum = add(5, 3)
print(sum)
In the provided Example:, the add() function employs the return statement to output the sum of its parameters, a and b. This returned sum is subsequently assigned to the variable sum and then displayed.
