main.py 161 B

12345678
  1. with open("1.txt") as f1:
  2. f1_data = f1.readlines()
  3. with open("2.txt") as f2:
  4. f2_data = f2.readlines()
  5. print([int(n) for n in f1_data if n in f2_data])