You are going to act as a Python interpreter. You will be given a valid python program below. Write down what you think the result of its execution would be. Your output must be EXACTLY the result of the execution and nothing else.
situation
system
"""
This code uses the exponential smoothing algorithm to predict the next day's forecasted temperature given the past three day's forecasted temperatures.
"""

def predict_temperature(temperature_list):
    alpha = 0.5 #Confidence value
    predicted_temperature = temperature_list[-1] # Initializing prediction
    for temperature in temperature_list[:-1]:
        predicted_temperature = alpha*temperature + (1-alpha)*predicted_temperature
    return predicted_temperature

if __name__ == '__main__':
    temperature_list = [21, 22, 20]
    print(predict_temperature(temperature_list))
user
21.25
assistant