[Tutor] The magic parentheses

Alan Gauld alan.gauld at btinternet.com
Sun Jan 24 18:08:04 CET 2010


"Hugo Arts" <hugo.yoshi at gmail.com> wrote 

>>>> print "this is {0}".format("formatted")
> this is formatted

Caveat:
this style only works in Python 3.0 upwards  (or maybe in 2.6/2.7?)

Alan G.



More information about the Tutor mailing list