[Tutor] Writing to CSV string containing quote and comma

Steven D'Aprano steve at pearwood.info
Tue Dec 10 13:49:15 CET 2013


On Tue, Dec 10, 2013 at 01:43:57PM +0100, spir wrote:
> On 12/10/2013 12:46 AM, Steven D'Aprano wrote:
> >In Python 2.7, you can abbreviate that last one slightly:
> >
> >'{} "{}"'.format(number, word)
> 
> Why 2.7? By me also works with 3.3.

Sorry, I meant "Python 2.7 or later".


-- 
Steven


More information about the Tutor mailing list