Skip to content

Instantly share code, notes, and snippets.

@aychedee
Last active December 16, 2015 02:29
Show Gist options
  • Save aychedee/5363188 to your computer and use it in GitHub Desktop.
Save aychedee/5363188 to your computer and use it in GitHub Desktop.
Problem of the week (April 10)
print """
sentence = 'Coding for Interviews contains too many gifs.'
broken = sentence.split()
broken.reverse()
reversed = ' '.join(broken)
assert reversed == 'gifs. many too contains Interviews for Coding'
print reversed
"""
sentence = 'Coding for Interviews contains too many gifs.'
broken = sentence.split()
broken.reverse()
reversed = ' '.join(broken)
assert reversed == 'gifs. many too contains Interviews for Coding'
print reversed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment