You are viewing a single comment's thread. Return to all comments →
def solve(a, b): return a + b
a = 2 b = 3
Explanation:
The function solve(a, b) takes two integers.
It simply returns their sum using the + operator.
For a = 2 and b = 3, it returns 5. ✅
print(solve(a, b)) # Output: 5
Seems like cookies are disabled on this browser, please enable them to open this website
Solve Me First
You are viewing a single comment's thread. Return to all comments →
def solve(a, b): return a + b
Sample Input
a = 2 b = 3
Explanation:
The function solve(a, b) takes two integers.
It simply returns their sum using the + operator.
For a = 2 and b = 3, it returns 5. ✅
Sample Output
print(solve(a, b)) # Output: 5