Write wrongness(forecast, actual): one number for how wrong a temperature forecast was. 0 means perfect; bigger means more wrong.
A four-day temperature forecast against what really happened. Some days it ran hot, some cold, one was spot on. Your function scores how wrong it was overall.
wrongness(forecast, actual)| forecast | temperatures, one per day | e.g. [20, 22, 19] |
| actual | temperatures, one per day | e.g. [20, 22, 19] |
| returns | how wrong the forecast was (0 = perfect) | |