s = "aadarsh , aravind aadarsh,"
st=s.split()
lst=[]
for i in st:
if i not in lst:
lst.append(i)
print(' '.join(lst))
this is my program but am not able to get my desired output
My sample string is s = "aadarsh , aravind aadarsh," and my output should be -> aadarsh , aravind and all the duplicates should be removed including commas as well how to do it.