Definition

Short for enumerations and represents a set of symbolic names bound to unique values

Example usage

from enum import Enum
# class syntax
class Color(Enum):
	RED = 1
	GREEN = 2
	BLUE = 3
 
# functional syntax
Color = Enum('Color', ['RED', 'GREEN', 'BLUE'])