class class1(object): def methode1(self, num): self.num = num check_methode = class1.methode1(num = 5) print(check_methode)
#ошибка:
#Traceback (most recent call last):
# File “py.py”, line 4, in <module>
# check_methode = class1.methode1(num = 5)
#TypeError: methode1() missing 1 required positional argument: ‘self’