Can someone help me removing duplicates from reading a file
def listaClientes():
f = open("chamadas.txt","r").readlines()
print("Clientes que fizeram chamadas: ")
new_lines = []
for line in f:
parts = line.strip().split()
chamada = (parts[0])
print(chamada)
It gives me this (parts)
Clients:
960373347, 960373347,930930597, 960373347,939999868
As you can see i have numbers repeated, how to prevent this in python?
Thanks