TypeError: all() takes 1 positional argument but 2 were given code example

Example 1: 1 positional arguments expected but 2 were given

#Happens when a function expects only 1 value to be passed through it
#But multiple are passed through

class thing(object):
	def __init__(self):
    	pass
       
    def function(self)
		print("hello")

thingy = thing()
thingy.bind("<KeyPress>", thingy.function)

#You don't expect above to pass two values through, however it passes an event
#and self which is why it will give a positional argument error

Example 2: 2 positional arguments but 3 were given

#Positional arguments are the amount of arguments passed through a function
#For example

def function(value1, value2):
	print(value1)
	print(value2)

function("value1","value2","value3")