I'm farily new to time complexity. I'm looking for the time complexity of this code
def func(arg): list= [] for i in range(len(arg): list.append(arg.count(i) return list I know that the loop would make it O(n), but then count is also O(n) in python, would that make this function O(n) or O(n2)?