- 9
Somebody wrote code to take a string input and output it, repeated 10 times. However, the code results in an error.
8 Antworten
+ 2
hello = input()
print(hello*10)
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?
0
Don't expect people to put effort into helping you if you're not even willing to put any effort into asking your question.
https://www.sololearn.com/Content-Creation-Guidelines?
https://code.sololearn.com/Wv5gTHy1N6Ji/?ref=app
https://www.sololearn.com/discuss/1316935/?ref=app
https://code.sololearn.com/W3uiji9X28C1/?ref=app
https://www.sololearn.com/discuss/333866/?ref=app
0
x = input()
print(x*10)
- 1
x = input()
print(x*10)
- 1
No answer.
- 2
X= input()
Print(X*10) #change + to *
- 2
X= input ()
Print(x*10)