You are viewing a single comment's thread. Return to all comments →
To remove duplicates this function will help you:
def Remove(duplicate): final_list=[] for num in duplicate: if num not in final_list: final_list.append(num) return final_list
ar_ele=list(int(i) for i in input().split()) print(Remove(ar_ele))
Find the Runner-Up Score!
You are viewing a single comment's thread. Return to all comments →
To remove duplicates this function will help you:
def Remove(duplicate): final_list=[] for num in duplicate: if num not in final_list: final_list.append(num) return final_list
ar_ele=list(int(i) for i in input().split()) print(Remove(ar_ele))