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

Radical chlorination of pentane is a poor way to prepare 1-chloropentane, but radical chlorination of neopentane, (CH3)4C, is a good way to prepare neopentyl ch
Need help with these questions! Will give brainliest answer/thanks/5 star
In which war did the largest number of Americans serve in the armed forces?
When a given reaction is conducted in a calorimeter, energy is absorbed from the surrounding water that results in a decrease in the water’s temperature. Which
A water balloon was dropped from a high window and struck its target 1.1 seconds later. If the balloon left the person's hand at -5 meters/sec what was the velo
URGENT: Can someone please help me write 5-7 sentences about text structure? Here's what I have so far: Text structure is a literary device that all authors
Whats 8 yards : 40 feet in silliest form
where would you find the lipid bilayer in a cell ?
Please help me with these questions please I need help? I'm confused with these questions can somebody explain me please.
A 45 foot long escalator rises from the first floor to the second floor of a shopping mall. The escalator makes a 30° angle with the horizontal. How high above