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)
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:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers