Ответ:
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
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
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