prize17-3, Exercise 3: Years since 1917 events = {"Original Dixieland Jass Band record": 1917, "Creole Jazz Band at Gennett": 1923, "Hot Five begins": 1925, "West End Blues": 1928} base = 1917 for name, year in events.items(): print(f"{year} +{year - base:>2} years {name}") Output (run and checked): 1917 + 0 years Original Dixieland Jass Band record 1923 + 6 years Creole Jazz Band at Gennett 1925 + 8 years Hot Five begins 1928 +11 years West End Blues Why it works: a dictionary pairs each name with a year, and the loop subtracts the base year. The :>2 in the f-string right-aligns the number in two characters so the columns line up. Care: the years are those given in this chapter; the first Hot Five sessions are usually dated to 1925 (check).