Python Principles
Python Q&A

How do I print without making a new line?


The print function takes an optional named parameter called end. By setting this to the empty string, no newline will be shown after your value was printed. For example:

print("AAA", end="")

Alternatively, on UNIX systems you can write directly to the sys.stdout file, which will show output on your terminal. This gives you a deeper level of control:

import sys