Created
May 9, 2020 00:52
-
-
Save cosinekitty/a6274c4eba56fd46090ec20d92438c9d to your computer and use it in GitHub Desktop.
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
| def React(suit): | |
| if suit == Suit.Club: | |
| print('Please do not beat me with that.') | |
| elif suit == Suit.Diamond: | |
| print('Now we are rich.') | |
| elif suit == Suit.Heart: | |
| print('I love you too.') | |
| elif suit == Suit.Spade: | |
| print('Thank you for the handy garden tool.') | |
| else: | |
| raise ValueError('Unknown card suit') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment