DEV Community

loading...

Discussion on: How to Print on the Same Line in Python: Print and Write

Collapse
wrldwzrd89 profile image
Eric Ahnell

If you're a six user to smooth over the Python 2 and 3 differences, its print_() function also simplifies the task of "just print some text". Of course, as your article says, there's quite a bit more to it than that... not to mention that you can use the magic method system to define what Python should do when asked to print one of your objects.