You are on page 1of 1

#to remove the duplicate elements in the list

for i in test_list:
if i not in res:
res.append(i)

You might also like