f = open("emails.txt", "rt")  # filename, mode

emails = set()
for line in f.readlines():
    mails = line.strip().split(",")
    emails = emails.union(set(mails))

f.close()

for e in sorted(emails):
    print(e)

4632237941fb07dccd2a9ab663301d20a8488525
<mask token>

<mask token>
for line in f.readlines():
    mails = line.strip().split(',')
    emails = emails.union(set(mails))
f.close()
for e in sorted(emails):
    print(e)

f = open('emails.txt', 'rt')
emails = set()
for line in f.readlines():
    mails = line.strip().split(',')
    emails = emails.union(set(mails))
f.close()
for e in sorted(emails):
    print(e)

f = open("emails.txt", "rt")  # filename, mode

emails = set()
for line in f.readlines():
    mails = line.strip().split(",")
    emails = emails.union(set(mails))

f.close()

for e in sorted(emails):
    print(e)
