DEV Community

Wincent Balin
Wincent Balin

Posted on • Originally published at ofdigitalwater.postach.io on

Print in Python without newline

If you want to print a string in Python without newline at the end, do it like this:

# ... and if you are in Python 2: from __future__ import print_function
print('.', end='')
Enter fullscreen mode Exit fullscreen mode

Top comments (0)