3 ms·
The pain is worth it. There is a lot of confusion over what its all about, the arguments dont matter. A simple exercise to show you why 3.0 is better. Compar
by techdragon 13y ago
The pain is worth it.
There is a lot of confusion over what its all about, the arguments dont matter.
A simple exercise to show you why 3.0 is better.
Compare the printing of a concatenated set of strings without wanting to print each segment on a newline.
In python 2 you need to do silly things like this.
import sys
sys.stdout.write('.')
In python 3 its just an argument on the print function, clean, easy to read, powerful once you grasp other ways it can be used.
print('.', end="")
This is just the start. It may seem small, but sometimes the smallest thing can be the biggest reason.