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

Help pleaseeeeeeeeeeeee
1) Find the missing measures of this isosceles triangle below . 48° B. C MAC
19 less than 28 Write as a algebraic expression
What does perilous means​
ANSWER BOTH OF THEM PLEASE!!! A. A car corporation produced 580 fewer cars this month than last. Write a signed number to represent this month's change in prod
Select all expressions that are equivalent to 2 x 2 x 2 x 2 x 2 x 2
i like how everyones here for you cept when you need them. im so done. i hate how you could be here for anyone and everyone but they cant help you when you need
PLEASE HELP I WILL GIVE BRAINLIEST IF RIGHT!!!!
At which conference did the SS and German agency leaders decide on the implementation plan for targeted extermination?
Simplify this radical expression. 25x