Created
May 8, 2020 22:03
-
-
Save cosinekitty/6ee8caa6499138b1de24597e7b15e9d7 to your computer and use it in GitHub Desktop.
Example of simple enum declaration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python3 | |
| from enum import Enum, unique | |
| @unique | |
| class Suit(Enum): | |
| Club = 1 | |
| Diamond = 2 | |
| Heart = 3 | |
| Spade = 4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment