+ 1

How can i print multiple lines of text in a single line like C in python ?

As we have seen c prints many letters/numbers in line while passed from any loop is there any method/keyword in python for the same.

24th Jun 2017, 1:16 PM
Loves Python
Loves Python - avatar
4 odpowiedzi
+ 1
end=' ' print("hello", end=' ') print("world") output: hello world for i in range(5): print(I, end=' ') output: 0 1 2 3 4
24th Jun 2017, 3:05 PM
LordHill
LordHill - avatar
+ 1
Thanks a lot guys specially @Joker.
24th Jun 2017, 4:24 PM
Loves Python
Loves Python - avatar
0
try to put """ (three quotes) to open and """" to close the line, doing this, you can put a ENTER in the line to continue on the same line.
24th Jun 2017, 1:50 PM
Bruno Falis
Bruno Falis - avatar
0
it's what we are here for 👍
24th Jun 2017, 4:35 PM
LordHill
LordHill - avatar