Skip to content

Instantly share code, notes, and snippets.

@cosinekitty
Created May 9, 2020 00:52
Show Gist options
  • Select an option

  • Save cosinekitty/a6274c4eba56fd46090ec20d92438c9d to your computer and use it in GitHub Desktop.

Select an option

Save cosinekitty/a6274c4eba56fd46090ec20d92438c9d to your computer and use it in GitHub Desktop.
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