prize17-9, Exercise 3: Gaps between albums albums = {"Time Out": 1959, "A Love Supreme": 1965, "Bitches Brew": 1970} years = list(albums.values()) for (n1, y1), (n2, y2) in zip(albums.items(), list(albums.items())[1:]): print(f"{n1} -> {n2}: {y2 - y1} years") Output (run and checked): Time Out -> A Love Supreme: 6 years A Love Supreme -> Bitches Brew: 5 years Why it works: zip pairs the list of items with the same list shifted by one, so each pair is two neighbouring albums. The line that defines years is not used and can be removed. Care: the years are release years as given in this course (A Love Supreme is recorded in 1964 and released in 1965, check). Use the same kind of year for every album.