1from enum import Enum
2
3class Color(Enum):
4 RED = 1
5 GREEN = 2
6 BLUE = 3
7
8print(Color.RED)
9
10class Shake(Enum):
11 VANILLA = 7
12 CHOCOLATE = 4
13 COOKIES = 9
14 MINT = 3
1>>> from enum import Enum
2>>> class Color(Enum):
3... RED = 1
4... GREEN = 2
5... BLUE = 3
6...
7