Practicepython Exercise 18 for beginers