Solve Me First

  • + 3 comments

    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