Using + with strings considered bad

Chris Angelico rosuav at gmail.com
Wed Apr 29 14:55:59 CEST 2015


On Wed, Apr 29, 2015 at 10:23 PM, Cecil Westerhof <Cecil at decebal.nl> wrote:
> In 2.7 that gives:
>    ('Calculating fibonacci and fibonacci_memoize once for', 40, 'to determine speed increase')
>
> So I am going to use the one above it.

Start your script with:

from __future__ import print_function

Problem solved! :)

ChrisA



More information about the Python-list mailing list