0
A code to print every character input thrice. Like print input HELLO as HHHEEELLLOOO
i did it but they are not concatenated, each three character appear on separate lines
10 ответов
+ 8
Share your code plz
+ 3
use
print(i,end="")
+ 1
Cloudnine multiply 3 inside the parentheses
print(x[i]*3,end="")
0
Showing syntax error
0
x= ["H","e","l","l","o"]
for i in range(0,5):
print(x[i])*3
0
I used double quotes
Above mentioned my code:
Output
HHH
eee
lll
lll
Ooo
0
File "source_file.py", line 7
print(x[i]*3,end="")
^
SyntaxError: invalid syntax
0
For me it works fine
https://code.sololearn.com/c6LnLPe7M9wE/?ref=app
0
End is python 3 command?
0
It's showing invalid syntax for end