minichallenge9 of Python Programming Challenge