Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- txt = input()
- replacements = ",;:.!()\"\'\\/[] "
- clear_chars = []
- for i in range(0, len(txt)):
- if txt[i] in replacements:
- clear_chars.append(' ')
- else:
- clear_chars.append(txt[i])
- words_str = ''.join(clear_chars)
Advertisement
Add Comment
Please, Sign In to add comment