Enum in a Class in Python
Enum, short for “enumerate” is a robust way for us to enforce a strict set of options in Python. For example a fixed choice of Aeroplane Manufacturers and each choice manufacturers matches a model name. Let’s look at the example below and see we can do this can be done in practice. Example Code Pass […]