-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpet_cats.py
22 lines (20 loc) · 841 Bytes
/
pet_cats.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
from pet_goods import pet_goods
from pet_animals import pet_animals
class pet_cats(pet_animals):
def __init__(self, name, price, kind_pet, age, cats_breed):
pet_animals.__init__(self, name, price, kind_pet, age)
self.cats_breed = cats_breed
def display_cats(self):
print(self.name, self.price, self.kind_pet, self.age, self.cats_breed)
def add_cat():
goods_array=[]
name=input("Please input name goods: ")
price=int(input("Please input price goods: "))
kind_pet=input("Please input kind of pet: ")
age=input("Please input age pet: ")
cats_breed=input("Please input cats breed: ")
goods_array.append(name)
goods_array.append(price)
goods_array.append(kind_pet)
goods_array.append(age)
goods_array.append(cats_breed)