Site icon Alrich Roshan

Solve Me First HackerRank Solution in Python

Solve Me First

Complete the function solveMeFirst to compute the sum of two integers.

Example

a = 7

b = 3

Return 10

Function Description

Complete the solveMeFirst function in the editor below.

solveMeFirst has the following parameters:

Returns

– int: the sum of  a and b

Constraints

1 a,b 1000

Sample Input

a = 2
b = 3

Sample Output

5

Explanation

2 + 3 = 5

Code

def solveMeFirst(a,b):
    # Hint: Type return a+b below
    return a+b;

num1 = int(input())
num2 = int(input())
res = solveMeFirst(num1,num2)
print(res)
Exit mobile version