We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
I am getting an error saying the num1 object isn't defined using python 3.
def solveMeFirst(a,b):
num1 = int(input())
num2 = int(input())
num3 = num1+num2
return num3
res = solveMeFirst(num1, num2)
print(res)
Traceback (most recent call last):
File "solution.py", line 8, in <module>
res = solveMeFirst(num1, num2)
NameError: name 'num1' is not defined
Cookie support is required to access HackerRank
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 →
I am getting an error saying the num1 object isn't defined using python 3.