Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
** Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement! **
Comments¶
You must assign a value to each enum member.
from enum import Enumclass Color(Enum):
RED = 0
GREEN = 1Color.RED<Color.RED: 0>