Skip to content

Instantly share code, notes, and snippets.

@abhishek-shrm
Created October 4, 2020 14: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 abhishek-shrm/b64b40a04ec23d3099321460ec1bb053 to your computer and use it in GitHub Desktop.
Save abhishek-shrm/b64b40a04ec23d3099321460ec1bb053 to your computer and use it in GitHub Desktop.
# Extracting text from all the keys files
keys_text=dict.fromkeys(index,None)
for key_file in keys_list:
file=open(key_file,encoding='utf-8').read()
keys_text[int(key_file.split('.')[0].split('/')[-1])]=file
# Printing content of five files
dict(list(keys_text.items())[:5])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment