The "enum" type in Python lets you create variables constrained to a predefined range of values. Learn how this built-in Python type can be used to express the state of something, whether as a string, an integer, or some other type – and how to ensure the values you create remain consistent both inside and outside your program.
--------------------------------
SUBSCRIBE: http://www.youtube.com/subscription_c...
FACEBOOK: / infoworld
TWITTER: / infoworld
WEBSITE: http://www.infoworld.com/