Enum in Python

Enum is a collection of symbolic names and its values are unique and constant. In essence enums are collection of constants.

You can use enum when you have a specific string or integer appearing in several places in the code. By placing enum instead of a string, you would avoid possible errors that could be result of typos in your code.

[Read More]
python  enum