A Refresher

Just a short program to refresh your memory about how to program. Write a program that prompts the user for a name. Then display that name ten times. You must use a loop. If the name given is “Harambe”, display it only five times.

Name the file refresher.py

What is your name: gump

gump
gump
gump
gump
gump
gump
gump
gump
gump
gump

What is your name: Harambe

Harambe
Harambe
Harambe
Harambe
Harambe

©2021 Daniel Gallo

This assignment is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 United States License.

Creative Commons License

Adapted for Python from Graham Mitchell’s Programming By Doing