how to delete duplicate file in folder in python code example
Example: python delete duplicate lines in file
with open("file.txt", "r") as txt_file:
new_data = list(set(txt_file))
return new_data
with open("file.txt", "r") as txt_file:
new_data = list(set(txt_file))
return new_data