Patching the standard output with the sys module is what precisely it looks like, but you need to be aware of a couple of gotchas: Think about you ended up composing a countdown timer, which really should append the remaining the perfect time to a similar line each individual second: https://johnathanmrrrr.blogolenta.com/28370625/the-smart-trick-of-print-that-nobody-is-discussing