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

While laws may seem to limit our freedom’s laws also guarantee what?
in which of these numbers is the total value of the digit 8 equal to 1/10 the value of the 8 in 587,140
How is sectionalism related to freedom
explain why the middle colonies can be called a "melting pot"
if RO= 6+x and OQ=2x+1 find the value of X and RO OQ RQ
The equation above shows how temperature F, measured in degrees Fahrenheit, relates to a temperature C, measured in degrees Celsius. Based on the equation, whic
One of the aims of the United States during world war 1 was The defeat of japan? Freedom of the seas? The collection of reparations? The division of Germany i
How to write 100,203 in word form
Which verb form best completes this sentence? Sara: Para mi clase de literatura, _________ que leer dos libros. A. tienes B. tengo C. tiene D. tiene
what was an immediate result for Japan after World War 1