Write a short Python script to compute the average temperature of a given set of temperatures.
temperatures = [71,77,82,81,75,72,78]
def average(temperatures):
    total = 0
    for temp in temperatures:
        total += temp
    return total/len(temperatures)

print(average(temperatures))