Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1
- 2
- 4
- 1
- 2
- 3
- 4
- #Read the two files into list1 and list2
- list1 = [i for i in open("file1.txt").readlines()]
- list2 = [i for i in open("file2.txt").readlines()]
- print("Missing values in first list:", (set(list2).difference(list1)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement