Practice creating Algorithms using Python