Shark species

Question P4.2.5

The file shark-species.txt contains a list of extant shark species arranged in a hierachy by order, family, genus and species (with the species given as binomial name : common name). Read the file into a data structure nested dictionaries which can be accessed as follows:

>>> sharks['Lamniformes']['Lamnidae']['Carcharodon']['C. carcharias']
Great white shark

Solution P4.2.5