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

if the volume of the cube is 125cm³ then what will be the length of it's side.​
For the following reaction, 5.04 grams of nitrogen gas are allowed to react with 8.98 grams of oxygen gas: nitrogen(g) + oxygen(g) --> nitrogen monoxide(g)
You have a 100.0-mL graduated cylinder containing 50.0 mL of water. You carefully place a 180-g piece of brass (density = 8.56 g/mL) into the water. What is the
Computer programmers often use binary codes (strings of 1s and 0s) to write programs for computers. These codes are then changed into patterns that the computer
What are the facts regarding sacco and vanzetti clearly biased the jury against them?
Which of the following is a solution of 12 x - 7 > 6? -1 0 1 2
The curves shown depict an economy with a real gdp of $16 billion. use the drag tool to model an unusually long and deep recession that does lasting damage to t
Whats is the answer to 5/8 -1/10
Two strings are adjusted to vibrate at exactly 420 Hz . Then the tension in one string is increased slightly. Afterward, three beats per second are heard when t
What did the Aristotle teach incorrectly about the havens??? This is NOT a multiple choice answer and you can find the answer in “The Story Of science” I could