+ 7
Print() aÄşways moves to the next line. What to do if we don't want to go to a newline nd want to print somethng in da same line
11 Answers
+ 17
For Python, use print("your_string", end="").
For more, see https://docs.python.org/3.3/library/functions.html#print
+ 12
@Sriparvathi print() of python or printf() of C?
+ 12
mark as best answer so that others can know
+ 3
@David Ashton
thank you!
that worked
+ 3
@Infinity
print () of python
and giving a second parameter end with no value helped as suggested by #David
+ 3
oh thanks! @ infinity. didnt know we could mark an answer as best answer until u Said so
+ 2
@Gordie
in python it does...check this code
https://code.sololearn.com/c9HoRB7TFwgw/?ref=app
+ 2
@Gordie
in python it does...check this code
https://code.sololearn.com/c9HoRB7TFwgw/?ref=app
+ 2
sorry @gordie