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

14th Jul 2019, 4:05 AM
RUTVIKA PATIL
RUTVIKA PATIL - avatar
10 Réponses
+ 8
Share your code plz
14th Jul 2019, 4:30 AM
Frost
Frost - avatar
+ 3
use print(i,end="")
14th Jul 2019, 4:21 AM
Saurabh Tiwari
Saurabh Tiwari - avatar
+ 1
Cloudnine multiply 3 inside the parentheses print(x[i]*3,end="")
14th Jul 2019, 4:34 AM
Saurabh Tiwari
Saurabh Tiwari - avatar
0
Showing syntax error
14th Jul 2019, 4:28 AM
RUTVIKA PATIL
RUTVIKA PATIL - avatar
0
x= ["H","e","l","l","o"] for i in range(0,5): print(x[i])*3
14th Jul 2019, 4:33 AM
RUTVIKA PATIL
RUTVIKA PATIL - avatar
0
I used double quotes Above mentioned my code: Output HHH eee lll lll Ooo
14th Jul 2019, 4:34 AM
RUTVIKA PATIL
RUTVIKA PATIL - avatar
0
File "source_file.py", line 7 print(x[i]*3,end="") ^ SyntaxError: invalid syntax
14th Jul 2019, 4:36 AM
RUTVIKA PATIL
RUTVIKA PATIL - avatar
14th Jul 2019, 4:37 AM
Saurabh Tiwari
Saurabh Tiwari - avatar
0
End is python 3 command?
14th Jul 2019, 4:45 AM
RUTVIKA PATIL
RUTVIKA PATIL - avatar
0
It's showing invalid syntax for end
14th Jul 2019, 4:45 AM
RUTVIKA PATIL
RUTVIKA PATIL - avatar