Created
June 6, 2015 00:03
-
-
Save dingus9/b890af6db72c4e0647a8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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