Variables hold values, lists hold many values in order, and loops repeat work for each item. Indentation (4 spaces) shows which lines belong to the loop.
temperatures = [18.5, 21.0, 23.4, 19.9] for temp in temperatures: if temp > 20: print(f"{temp}°C - warm") else: print(f"{temp}°C - cool") average = sum(temperatures) / len(temperatures) print(f"Average: {average:.1f}°C")