I picked up adding a few meta values to enums a long time ago; I feel they make bounds checking and writing for loops more readable. But gcc has been giving me some grief about it in one way, here's ...
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, ...