python print no end of line

# print with no end of line
print("Hello world", end='')

# if there are some buffering issues, try :
print("Hello world", end='', flush=True)

Here is what the above code is Doing:
1. print() is a built-in function in Python.
2. print() takes an argument of what you want to print.
3. print() by default ends with a newline.
4. print() can be given the argument end to change what it ends with.
5. print() can be given the argument flush to mean it should flush the buffer.