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

Gene cloning can involve inserting genes into Select one: a. protein b. machines c. plants d. humans
Your town is considering building a biodiesel power plant. Describe at least two advantages and two disadvantages of this project. Based on these factors would
A firecracker shoots up from a hill 140 feet high with an initial speed of 100 feet per second. Using the formula H(t) = −16t2 + vt + s, approximately how long
Factorise x^2 - x - 56
In which of these samples do the molecules most likely have the least kinetic energy?
This power is generated from a renewable resource; however, it still has some of the negative effects associated with using power generated by burning fossil fu
Magnetic force... Is it a Conservative or Non-conservative field?
Whats is it a reflection a horizontal stretch or horizontal compression
Plant leaves have a waxy covering called a cuticle. When there is not enough water in the environment some plants increase their cuticle thickness. What does th
please check picture to see question (please explain)