इस कोड का आउटपुट क्या है:
What is the output of this code:
def add(x, y):
return x + y;
print(add(3, 4))
A)
B)
C)
D)
Explanation:
The function add(x, y)
returns the sum of x
and y
.
When calling add(3, 4)
, it will return 3 + 4 = 7
.
So, the output will be 7.
Answer: (C) 7