Skip to content

Instantly share code, notes, and snippets.

@dingus9
Created June 6, 2015 00:03
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 dingus9/b890af6db72c4e0647a8 to your computer and use it in GitHub Desktop.
Save dingus9/b890af6db72c4e0647a8 to your computer and use it in GitHub Desktop.
import csv
with open('other_list.txt', 'r') as other_list:
sublist_something = other_list.readlines()
complete_list = {}
with open('master_list.txt', 'r') as master_list:
for account_id in master_list.readlines():
complet_list[account_id] = {}
if account_id in sublist_something:
complete_list[account_id]['value_i_care_about'] = True
else:
complete_list[account_id]['value_i_care_about'] = False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment