dillonseanbarr dillonseanbarr
  • 23-10-2020
  • Computers and Technology
contestada

Does anyone know how to ask the user to input their name and then print the name 10 times using a while loop and have the 10 names on different lines?

Respuesta :

Cytokine
Cytokine Cytokine
  • 23-10-2020

In python:

name = input("What's your name? ")

i = 0

while i <= 10:

   print (name)

   i += 1

I hope this helps!

Answer Link

Otras preguntas

The amount of a good or service that producers are able and willing to sell is the definition of
. Uno de los problemas ambientales es la escasez de agua para proveer de agua a una comunidad, se necesitan 3846 metros deTuberia, y cada tubo mide 6 metros de
Cristian made an ankle bracelet using 6 red beads, 10 green beads, 4 purple beads, and 5 yellow beads. He wants to make a necklace that has the same ratio of co
Low‑density lipoprotein, or LDL, is the main source of cholesterol buildup and blockage in the arteries. This is why LDL is known as "bad cholesterol." LDL is m
According to enlightenment philosophy, the ——— was a time before humans organized into societies and governments.
explain how ostriches evolved to survive in their environment.
HELLPPPP PLEASE Look at the mask below. What do the materials use to make it tell us about the culture that created it?
What challenges did the Roman Empire face in relationship to their growing imperialist control over vast land?
What challenge do presidents in particular face when persuading an audience? O A. They need to use figurative language. B. They must use a formal and intelligen
Daniel is currently 26 years older than his son. In 6 years he will be 3 times older than his son. How old are both of them now?