A guide uses short codes to find full captions. The starter builds the lookup in the wrong direction.
A dictionary comprehension can compute a new value for every key.
words = ["reef", "cove"]
lengths = {word: len(word) for word in words}
print(lengths["reef"]) # 4The expression before the colon becomes the lookup key. Identify what the guide will look up before deciding which field belongs there.
Repair caption_map(signs). Each pair contains a short code and a caption. Return a mapping from the uppercase code to the caption as written. If codes become equal after uppercasing, the later caption wins.