Technical interview practice: Duplicate Naive

Hey guys I’m having trouble getting python to remove all duplicate words in an array just using pop(), replace and count().
This is my code:

def remove_duplicates(dupe_list):
  flag = True
  while flag:

    for i in dupe_list:
      if dupe_list.count(i)>1:
      for j in range(len(dupe_list)):
         if dupe_list.count(i)>1:
    flag = False
  return dupe_list

I’m just wondering if there is an easier way to do it without having to have a while AND a fore loop.

Does the while do anything? It looks like it only iterates once before flag is set to False.