[Biopython] Print statements vs functions (Python 2 vs 3)

Carlos Borroto carlos.borroto at gmail.com
Mon Sep 9 10:35:54 EDT 2013


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


More information about the Biopython mailing list