Python Programming - Functions - Discussion

Discussion Forum : Functions - General Questions (Q.No. 2)
2.
What will be the result of the following code snippet?
def add_numbers(a, b):
    return a + b

result = add_numbers(3, 7)
print(result)
10
21
'37'
Error
Answer: Option
Explanation:
The function add_numbers adds the values of a and b (3 + 7), resulting in 10.
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.