-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathunique.py
12 lines (8 loc) · 1.7 KB
/
unique.py
1
2
3
4
5
6
7
8
9
10
11
12
with open('input_file.txt','r') as f:
distinct_content=set(f.readlines())
to_file=""
for element in distinct_content:
to_file=to_file+element
with open('output_file.txt','w') as w:
w.write(to_file)
#-90505483 - Alim