Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a = "Sentence with weird whitespaces"
- 'Sentence with weird whitespaces'
- ' '.join([x for x in a.split(' ') if len(x)>0])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement