Last active
December 16, 2015 02:29
-
-
Save aychedee/5363188 to your computer and use it in GitHub Desktop.
Problem of the week (April 10)
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
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