Created
August 3, 2013 20:53
-
-
Save hoorayimhelping/6147939 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# Define a procedure, abbaize, that takes | |
# two strings as its inputs, and returns | |
# a string that is the first input, | |
# followed by two repetitions of the second input, | |
# followed by the first input. | |
def abbaize('a','b'): | |
a = 'a'+'b' | |
b = 'b'+'a' | |
return a+b | |
print abbaize('a','b') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment