input: Write a function to remove duplicates from a given list and return the list in the same order as they appear. Use a method that maintains the order of the elements in the list. If the list is empty, return an empty list.
  
  
  def remove_duplicates(my_list):
      seen = set()
      result = []
      for item in my_list:
          if item not in seen:
              seen.add(item)
              result.append(item)
      return result
  
  assert remove_duplicates([1, 2, 3, 4, 3, 2, 1])==[1, 2, 3, 4]
  assert remove_duplicates([4, 5, 5, 6])==[4, 5, 6]
  assert remove_duplicates([])==[]
  
output: def remove_duplicates(my_list):
      seen = set()
      result = []
      for item in my_list:
          if item not in seen:
              seen.add(item)
              result.append(item)
      return result