Пример #1
0
from animalfile import Animal

dog = Animal("max", "Brown", 2)
cat = Animal("min", "white", 17)

print(dog.name + "is" + str(dog.age) + "years old and its color is" + dog.color)
print(dog.malak())
Пример #2
0
from animalfile import Animal
dog=Animal("Taha","blonde",2)
cat=Animal("anan","black",10)


print("this dog is "+str(dog.age)+"years old"+"and THis cat is "+str(cat.age)+"years old")
print (dog.me())