Note that you have a comma at the end of line 7. This way
You will not have same error if you try to print
first
is actually a tuple
, not str
. Remove the comma and it will work for BadEnum.FIRST
You will not have same error if you try to print
BadEnum.SECOND
as the code is now
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs