Mar 17, 2014

Enumeration in Python

What are Enums?

An enumerator(also called Enum) allows mapping a set of symbolic names(also known as elements or members) to a set of constant values. The symbolic names can be compared within an Enum. Enums can also be iterated over. They are used to define immutables. They may also be thought of as identifiers which behave as constants in that language.