Tisbury Treasure Hunt- missing example

“Clean up” & make a report of all records" refers to an example that I cannot find.

  • see HINTS.md for an example

I need to see what the ‘report’ should look like so I can complete the task correctly.

  • Implement the clean_up() function that takes a tuple of tuples (everything from both lists), looping through the outer tuple, dropping the unwanted coordinates from each inner tuple and adding each to a ‘report’. Format and return the ‘report’ so that there is one cleaned record on each line.

On the site, I see a code block right underneath those instructions (replicated below). It seems like that’s the example report.

>>> clean_up((('Brass Spyglass', '4B', 'Abandoned Lighthouse', ('4', 'B'), 'Blue'), ('Vintage Pirate Hat', '7E', 'Quiet Inlet (Island of Mystery)', ('7', 'E'), 'Orange'), ('Crystal Crab', '6A', 'Old Schooner', ('6', 'A'), 'Purple')))

"""
('Brass Spyglass', 'Abandoned Lighthouse', ('4', 'B'), 'Blue')\n
('Vintage Pirate Hat', 'Quiet Inlet (Island of Mystery)', ('7', 'E'), 'Orange')\n
('Crystal Crab', 'Old Schooner', ('6', 'A'), 'Purple')\n
"""
1 Like

3 posts were split to a new topic: Help: Tisbury Treasure Hunt