Question

Consider the following Python code snippet:     def calculate_sum(a,
b):         result = a + b         return result     x = 5     y = 10     total = calculate_sum(x,
y)     print(total)     What is the value of result immediately before return result is executed inside calculate_sum when calculate_sum(x,
y) is called?

A 5
B 10
C 15
D None
E The value is undefined.
Practice Next

Hey! Ask a query