Advertisement
Guest User

Untitled

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