T
Size: a a a
T
P
A
T
A
T
P
P
P
A
with open('file', 'r', encoding="utf8") as f:
items = []
checked = set()
for line in f:
if line not in checked:
items.append(line)
checked.add(line)A

ПП
A
A
A
A
A
СВ
AG
СВ