Somebody wrote code to take a string input and output it, repeated 10 times. However, the code results in an error. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 9

Somebody wrote code to take a string input and output it, repeated 10 times. However, the code results in an error.

24th Oct 2021, 12:52 PM
Parthasarathi V
8 Answers
+ 2
hello = input() print(hello*10)
12th Mar 2022, 10:36 AM
Y. Sivajini
Y. Sivajini - avatar
0
post the code would be very helpful. There are many things possible. The question is. Is it a compile error or a runtime error?
24th Oct 2021, 1:05 PM
Stefanoo
Stefanoo - avatar
0
x = input() print(x*10)
29th Mar 2022, 1:34 PM
Abdelkhalek Nael Ahmad Allan
Abdelkhalek Nael Ahmad Allan - avatar
- 1
x = input() print(x*10)
22nd Feb 2022, 3:04 PM
Simisola Dodolewa
Simisola Dodolewa - avatar
- 1
No answer.
7th Sep 2022, 2:37 PM
John Kipkoech Tanui
- 2
X= input() Print(X*10) #change + to *
31st Jan 2022, 9:26 PM
Mohamed Ahmad
- 2
X= input () Print(x*10)
8th Apr 2022, 2:44 AM
Kumar Bayana
Kumar Bayana - avatar