Skip to content

Instantly share code, notes, and snippets.

@hoorayimhelping
Created August 3, 2013 20:53
Show Gist options
  • Save hoorayimhelping/6147939 to your computer and use it in GitHub Desktop.
Save hoorayimhelping/6147939 to your computer and use it in GitHub Desktop.
# 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