p = [3, 5, 6, 5]
t = [88.386, 88.986, 90.386, 88.386]
new_pressures = []
unique_times = set(t)
for value in unique_times:
    new_pressures.append(0)
for index, item in enumerate(t):
    if item == value:
        new_pressures[-1] += p[index]
print(new_pressures)
How to store f(t) if t is a float?