diff --git a/Remove_Duplicate_Function b/Remove_Duplicate_Function new file mode 100644 index 00000000..90b88cd1 --- /dev/null +++ b/Remove_Duplicate_Function @@ -0,0 +1,10 @@ +def remove_duplicates(lista): + lista2 = [] + if lista: + for item in lista: + if item not in lista2: #is item in lista2 already? + lista2.append(item) + else: + return lista + return lista2 +print remove_duplicates([1,2,3,3])