You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Write a Program which takes a path of "txt" file and check each line of file if any line is found duplicate then it should be removed and file must be get updated
"""
lines_seen = set() # holds lines already seen
print("Please Give me a path of File which has to modify - ")