Codility lessons solutions in python.