Write an algorithm in Python that identifies and removes duplicates from a given array.
Array = [2, 3, 4, 3, 2]
def removeDuplicates(array):
 result = []

 for number in array:
 if number not in result:
 result.append(number)

 return result

array = [2, 3, 4, 3, 2]
print(removeDuplicates(array))