Exercise 5: A Currency-Formatted Total — Possible Solution ==================================================================== prices = [12.5, 3.25, 7.995] total = 0 for price in prices: total += price print(f"Total: £{total:.2f}") Output: Total: £23.75 WHY THIS WORKS AS AN ANSWER ------------------------------ Summing 12.5 + 3.25 + 7.995 gives 23.745 exactly. The :.2f format specifier tells Python to display the value with exactly two decimal places, and it ROUNDS to get there rather than just chopping off extra digits — 23.745 rounds to 23.75 (rounding the 5 up), not 23.74. This is why the specifier is applied only at print time: total itself still holds the full-precision 23.745 in memory, and only the displayed text is rounded.