Write a program that will ask the user for a message and the number of times they want that message displayed. | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
- 1

Write a program that will ask the user for a message and the number of times they want that message displayed.

17th Apr 2017, 12:59 PM
John Alagos Francisco DAn
John Alagos Francisco DAn - avatar
3 Antworten
+ 3
typeof (language) # in the future
17th Apr 2017, 1:41 PM
Edward
+ 2
what language
17th Apr 2017, 1:38 PM
Edward
0
message=input("Enter a message ") num=int(input("How Many times? ")) print((message+"\n")*num)
17th Apr 2017, 2:13 PM
LordHill
LordHill - avatar