0
How to print without changing line?
print(123) a=456 print(a) how to output 123456 not 123 456?
6 ответов
+ 4
to stop print from switching to a new line use:
print("this is going to be printed", end="")
so, to get your desired output, use this:
print(123,end="")
a=456
print(a)
keep in mind that this does not work like this in python 2
+ 1
a=456
print(123,a)
try this
+ 1
@RedAnt Thank you.
0
i don't mean this!that's just a example.
0
Ok ask your expected output we may help better
- 2
phithon