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

How do you solve 8a+a-3=6a-2a-3 step by step
Which literary movement is characterized by the attempt to present society as a competitive jungle where some people flourish while others suffer?
Which is the best example of a primary source document useful in the study of history?
Describe the key characteristics of a mixture using melting point, substances, composition, range, physical process, separated
which two factors can both cause a population to increase
A communication medium that carries a large amount of data at a fast speed is called
Which event occurred directly after the Boston Tea Party?
which of the following was key reasons reasons for Coolidge's victory in the 1924 presidential election. A) there was a split between democratic party supporter
One problem that resulted from the changes in Ireland’s economy was _____. A. decreased farm output B. falling housing prices C. a growing income gap
Which answer best displays Adams' use of the civic virtue "reason"? A. Adams increased the U.S. military for defense. B. Adams used diplomacy to end the Quasi-W