Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Python Editor 5.2.0. New Open Save Run Export untitle.py [no ads ?] Snippets
- &
- testString = "fbhjkndfgkjdnljklasdf!@#$%^&*()_+=-0987654321',/ \ . \""
- for ch in ['1','2', '3', '4', '5', '6', '7', '8', '9', '0', '!', '@', '#', '$', '%', '^', '*', '(', ')', '-', '_', '=', '+', '\'', '"', '?', ',', '.', '\\', '/', '&']:
- if ch in testString:
- testString = testString.replace(ch,"")
- print(testString)
-
-
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement