Skip to content

Instantly share code, notes, and snippets.

@nobitagit
Created March 2, 2018 23:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nobitagit/f58f0d26f00936ef782444598b3d6187 to your computer and use it in GitHub Desktop.
Save nobitagit/f58f0d26f00936ef782444598b3d6187 to your computer and use it in GitHub Desktop.
def to_score(ch):
if ch in scores:
if ch.isupper():
return scores[ch] + 2
else:
return scores[ch]
return maxScore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment