Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. 1
  2. 2
  3. 4
  4.  
  5. 1
  6. 2
  7. 3
  8. 4
  9.  
  10. #Read the two files into list1 and list2
  11. list1 = [i for i in open("file1.txt").readlines()]
  12. list2 = [i for i in open("file2.txt").readlines()]
  13. print("Missing values in first list:", (set(list2).difference(list1)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement