Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- some_text = "Sof*)&(t Un%^&^%i is((. t&(he best!!!"
- split_text = some_text.lower().split()
- for word in split_text:
- modified_word = "".join([i for i in word if ord(i) in range(97, 123)])
- print(modified_word, end=" ")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement