[solved] paste result text with enter using python interpreter

I’m using after: paste-result, interpreter: python3, but the output text contains an enter even though I didn’t include \n or enter when selecting the text. Is it possible to solve the issue of the output having an enter after running the program?
I use print(result) to output the result.

thank you very much

1 Like

Hi @coolfish, welcome to the forum. The newline is added automatically by the python print function. However, it is easy to tell python not to add a newline, like this:

print('hello world', end='')

it works. thank you nick!

1 Like