Adding my solution to the Pedigree task (number 4) of the Python course
at FMI.