years = [1975, 1980, 1985, 1990, 1995, 2000, 2005, 2010, 2015, 2020]
ice_off = [121, 124, 117, 119, 114, 118, 112, 110, 113, 106]
first = sum(ice_off[:5]) / 5 # average of the first five values
last = sum(ice_off[5:]) / 5 # average of the last five values
print("1975-1995 average:", first)
print("2000-2020 average:", last)
print("Change:", round(last - first, 1), "days")
# Output:
# 1975-1995 average: 119.0
# 2000-2020 average: 111.8
# Change: -7.2 days
Comparing the averages of two time periods smooths out year-to-year ups and downs. ice_off[:5] means the first five items; ice_off[5:] means item 5 to the end.