Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from string import punctuation, whitespace
- fin = open('foobar.txt')
- for line in fin:
- message = line.strip().replace("\n","")
- for a in line:
- if (a in punctuation) or (a in whitespace): pass
- else: print a
- """ prints:
- e q u a l i t y
- """
Advertisement
Add Comment
Please, Sign In to add comment