Skip to content

Instantly share code, notes, and snippets.

@devpruthvi
Created September 4, 2015 15:55
Show Gist options
  • Save devpruthvi/72a127b61f580dd15888 to your computer and use it in GitHub Desktop.
Save devpruthvi/72a127b61f580dd15888 to your computer and use it in GitHub Desktop.
import ast
allData = []
with open('moosebook.txt','r') as f:
allData = list(map(list,ast.literal_eval('[' + f.read().replace(')(','),(')+ ']' )))
for data in allData:
print(data[0]+' : '+data[5])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment