Skip to content

Instantly share code, notes, and snippets.

@elbuo8
Created April 2, 2013 23:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elbuo8/5297099 to your computer and use it in GitHub Desktop.
Save elbuo8/5297099 to your computer and use it in GitHub Desktop.
import sys
file = open(sys.argv[1])
for line in file:
cacheLine = line.strip().replace(' ', '')
if (len(cacheLine[:-1]) >= int(cacheLine[-1])):
print cacheLine[::-1][int(cacheLine[-1])]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment