In python, I found I can have no new lines after printing by doing:
This syntax is called keyword arguments (or named arguments). This is explained in the official Python tutorial here: https://docs.python.org/3/tutorial/controlflow.html#keyword-arguments
And the print documentation is here. https://docs.python.org/3/library/functions.html#print
If you still have questions after reading these documents, feel free to ask.