0 points

Printing on the Same Line


dashboard

Sat Oct 24 2020 06:05:58 GMT+0000 (UTC)

Posted by @ButY

# Python 2 only
print "Live PD",

# Backwards compatible (also fastest)
import sys
sys.stdout.write("Breaking Bad")

# Python 3 only
print("Mob Psycho 100", end="")
content_copy Copy

https://therenegadecoder.com/code/python-code-snippets-for-everyday-problems/