What is the enum library, part II?
What is the enum library, part II?
I wanted to do a bit more on this - sorry please, thank you. I wanted to do a bit more practical examples.
A cute little octopus. |
Testing out enum code
why meta?
I asked chat GPT but it didn't make much sense. It's just a type of enum class I guess?
One more interesting source...
Here is one more interesting link... Source: https://www.python-engineer.com/posts/enums-python/
It says here that:
"Enum is a built-in data type in Python. It is used to create a finite set of constants."
"Enum is a collection of symbolic names and values.
It's a shortcut for enumeration and can be imported from the module enum.
Enumerations are created using classes."
So to give more examples
I played around with it some more
And I think I've got the idea now - thank you...
Thank you.
Comments
Post a Comment