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

What is the difference of the fractions below? 10x/3-2x/3 2x 13 3 A. 8 B. 8x C. 8x/3 D. 8/3x​
is the Earth bigger than the moon​
which story premise most clearly lacks conflict
Define mass .Also write the table showing the relation of 'kg' with it's sub- multiples and multiples.​
Marketing is the practice of what? OA. improving performances and competitors O B. promoting or selling products OC. streamlining production chains OD. educatin
A square pool is surrounded by a paved area that is 2 metres wide. If the area of the paving is 72m2, what is the length of the pool?
Prior to September, 2000, taxi fares from Washington DC to Maryland were described as follows: $2.00 up to and including 1⁄2 mile, $0.70 for each additional 1⁄2
change you are very fortune to exclamatory sentence​
Rhombus LMNO is shown with its diagonals. Rhombus L M N O is shown. Diagonals are drawn from point M to point O and from point L to point N and intersect at poi
I NEED ANSWER ASAP please and thank you