Remove_duplicate


#1

def remove_duplicates(x):
s=[]
for i in x:
if i not in s:
s.append(i)
return s


#2

Do you have any questions?

also you need to format your code properly


#3

ya brother I do know that , but I guess all of the coder here are intelligent enough to rectify that mistake when
they would be write the code


#5

Did not understand what you meant by that message or that reply......

also, if u add an else: block, it would be a better coding habbit, as the logic will appear to be more clear and complete even though it already is. It improves visibility of logic


#6

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.