def remove_duplicates(x):
for i in x:
if i not in s:
return s


Do you have any questions?

also you need to format your code properly


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


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


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