Skip to content

Instantly share code, notes, and snippets.

@JakenHerman
Created February 13, 2014 17:06
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 JakenHerman/8979268 to your computer and use it in GitHub Desktop.
Save JakenHerman/8979268 to your computer and use it in GitHub Desktop.
diff21 problem in Coding Bat
__author__ = 'Jaken'
def diff21(n):
if n >= 21:
return (n-21)*2
else:
return 21-n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment