Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# 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