class Cat:
def setcat(cats, c, w):
cats.color = c
cats.weight = w
one_cat = Cat()
one_cat.setcat("Black", 3)
two_cat = Cat()
two_cat.secat("Black", 5)
print(one_cat.weight,one_cat.color)
Объяснение:
UC22-19
class Cat:
def setcat(cats, c, w):
cats.color = c
cats.weight = w
one_cat = Cat()
one_cat.setcat("Black", 3)
two_cat = Cat()
two_cat.secat("Black", 5)
print(one_cat.weight,one_cat.color)
Объяснение:
UC22-19