Using + with strings considered bad

Cecil Westerhof Cecil at decebal.nl
Wed Apr 29 10:29:47 CEST 2015


Because I try to keep my lines (well) below 80 characters, I use the
following:
    print('Calculating fibonacci and fibonacci_memoize once for ' +
          str(large_fibonacci) + ' to determine speed increase')

But I was told that using + with strings was bad practice. Is this
true? If so, what is the better way to do this?

-- 
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof



More information about the Python-list mailing list