Muzixing's code of python challenge.