On Sat, Sep 7, 2013 at 7:41 AM, Peter Cock <p.j.a.cock at googlemail.com> wrote: > or more elegantly, > >>>> print("Two plus two is %i" % 4) Shouldn't this be done even more elegantly with something like this: >>> print( "Two plus two is {0:d}".format( 4 ) ) --Carlos