Created
February 13, 2014 17:06
-
-
Save JakenHerman/8979268 to your computer and use it in GitHub Desktop.
diff21 problem in Coding Bat
This file contains 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
__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