Skip to content
This repository was archived by the owner on Aug 11, 2023. It is now read-only.

Commit 4d11bb1

Browse files
committed
Update
1 parent 4582352 commit 4d11bb1

File tree

1 file changed

+28
-5
lines changed

1 file changed

+28
-5
lines changed

lessons/python/exercises/exercise-general-week-08-012--01.py

+28-5
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class Color(Enum):
2323
GRAY = auto()
2424

2525

26-
class BRAND(Enum):
26+
class Brand(Enum):
2727
BRAND_A = auto()
2828
BRAND_B = auto()
2929
BRAND_C = auto()
@@ -33,9 +33,32 @@ class BRAND(Enum):
3333

3434

3535
class Cloth:
36-
def move(self):
37-
pass
36+
name=""
37+
size: Size
38+
brand: Brand
3839

3940

40-
class Items:
41-
products: list[Cloth] = []
41+
class Skirt(Cloth):
42+
name="Skirt"
43+
44+
45+
class Hat(Cloth):
46+
name="Hat"
47+
48+
49+
class Pants(Cloth):
50+
name="Pants"
51+
52+
53+
class Coat(Cloth):
54+
name="Coat"
55+
56+
57+
class Product:
58+
cloth: Cloth
59+
count: int
60+
color: Color
61+
62+
63+
class Products:
64+
collection:list(Product)

0 commit comments

Comments
 (0)