14/15: Index out of range?


def remove_duplicates(array):
    removed = []
    sorted_array = sorted(array)
    count = 0 

    for i in range(len(array)):
        print sorted_array[i] 
        if sorted_array[i] != removed[count]:
            count +=1
    print "**************" 
    print removed
    print "**************" 
    return removed

My code works (seemingly), but I cant advance as the prompt is indicating my index is out of range. If I change
for i in range(len(array)) to range(len(array)-1) the index error disappears but it will always ignore the largest number.