Advertisement
Guest User

Untitled

a guest
Jan 21st, 2017
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. file_1 = open('1.txt', 'r').read().split('\n')
  2. file_2 = open('2.txt', 'r').read().split('\n')
  3.  
  4. array = []
  5. for email in file_1:
  6. if email.split(':')[0] not in file_2:
  7. array.append(email)
  8.  
  9. str = ""
  10. for email in array:
  11. str += email
  12. str += '\n'
  13.  
  14. file_3 = open('3.txt', 'w')
  15. file_3.write(str)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement