the answer of pythonchallenge.com