the practice inn coursera python

the Quiz 1, question 6