Skip to content

Instantly share code, notes, and snippets.

@DanielHeckrath
Created February 9, 2016 22:36
Show Gist options
  • Save DanielHeckrath/09e57ea58cae1a43eb87 to your computer and use it in GitHub Desktop.
Save DanielHeckrath/09e57ea58cae1a43eb87 to your computer and use it in GitHub Desktop.
# Will update the character count based on the used word
def updateHand(hand, word)
# this is where the magic happens
before = {'a': 1, 'b': 2, 'c': 3}
after1 = updateHand(before, 'abc')
after2 = updateHand(before, 'abc')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment