Ad
  • Default User Avatar

    Got it..Thank you very much!

  • Default User Avatar

    class Addition:
    pass

    def add(a, b):
        c = int(a) + int(b)
        return c
    

    a = Addition()

    print (a.add(5,6))

    I am trying to run above code but getting error that
    "add() takes 2 positional arguments but 3 were given"

    Can someone please help where am I making mistake?