Design an algorithm in Python that can read a list and return the most frequent item.
[1,2,3,4,4,4,5,5]
def most_frequent(list):
    return max(list, key=list.count)

list = [1,2,3,4,4,4,5,5]
print(most_frequent(list))