Sum of two numbers
Write a function that receives two numbers and returns their sum. Example:
sum_of_two_numbers(2, 3) == 5
sum_of_two_numbers(7, 1) == 8
Solution 1
def sum_of_two_numbers(a, b):
return a + b
Solution 2
def sum_of_two_numbers(a, b):
return sum([a, b])