Created
February 13, 2014 17:06
-
-
Save JakenHerman/8979265 to your computer and use it in GitHub Desktop.
Sum Double 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 sum_double(a, b): | |
sum = a+b | |
if a==b: | |
dub = sum*2 | |
return dub | |
else: | |
return sum |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment