TypeError: unbound method additon() must be called with calculator instance as first argument (got int instance instead)


#1

class calculator:

def additon(x,y):
    add = int(x) + int(y)
    print (add)

def sub(x,y):
    sub = x - y
    print(sub)

def mult(x,y):
    mult = x * y
    print(mult)

def div(x,y):
    div = x / y
    print(div)

calculator.additon(6,7)


#2

This post is poor behavior on your part. Not only is this off-topic for the forum (there are plenty of places to go for code help, and this isn’t one of them), you just expect us to know that you’re working with Python and you don’t have the decency to write out anything about what you’re trying to do.

Ask Google. It will help you find the answer.