Created
June 20, 2016 22:08
-
-
Save brettfreer/fc9bc48717e7fe066a41acd4efe5a918 to your computer and use it in GitHub Desktop.
Remove all spaces from a string
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
def remove_spaces(s): | |
return s.replace(' ', '') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment