-
-
Save shubham769/e0e7ba7653d1b3b8fd833fc79b8108c0 to your computer and use it in GitHub Desktop.
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
sample_text = "I want to remove spaces " | |
def remove_space(text): | |
text = text.strip() | |
text = text.split() | |
return " ".join(text) | |
remove_space(sample_text) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment