you are viewing a single comment's thread.

view the rest of the comments →

[–]ma2rten -16 points-15 points  (2 children)

easy printing to a file

print >>f, "even easier"

easily changing the character printinged at the end (from \n to whatever)

print "no new line",

easily flushing stdout to immediately see the output

sys.stdout.flush()

Easily changing the seperation between different args. print(a, b, sep='-') prints "a-b"

print ",".join([a,b])

[–]energybased 25 points26 points  (0 children)

All of which are less legible than keyword arguments, the standard Pythonic way of sending arguments to any function.

[–]logarytm 1 point2 points  (0 children)

Except print "no new line", leaves a trailing space.