Skip to content

Instantly share code, notes, and snippets.

@asarver
Created July 24, 2011 04:52
Show Gist options
  • Select an option

  • Save asarver/1102263 to your computer and use it in GitHub Desktop.

Select an option

Save asarver/1102263 to your computer and use it in GitHub Desktop.
Puzzle 2
file = open('puzzle2.txt', 'r')
while 1:
char = file.read(1) # read by character
if not char: break
if ord(char) == 32 or ord(char) >= 65 and ord(char) <= 90 or ord(char) >= 97 and ord(char) <= 122:
print char,
file.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment