Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import re
- texto = '\t OrtizOL Blog \n '
- print(texto.strip())
- print(texto.lstrip())
- print(texto.rstrip())
- print(texto.replace(' ', ''))
- print(re.sub('\s+', ' ', texto))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement