Answers for "remove duplicates in a file python"

1

python delete duplicate lines in file

with open("file.txt", "r") as txt_file:
  new_data = list(set(txt_file))
  return new_data
Posted by: Guest on November-30-2020

Code answers related to "remove duplicates in a file python"

Python Answers by Framework

Browse Popular Code Answers by Language