Solutions to the python challenge