Python 3.10 Fizzbuzz

Greg Ewing greg.ewing at canterbury.ac.nz
Mon Feb 27 18:54:09 EST 2023


On 28/02/23 5:08 am, Thomas Passin wrote:
> On 2/27/2023 11:01 AM, Mats Wichmann wrote:
>> If you intend to run Black on your code to ensure consistent 
>> formatting, you may as well learn to prefer double quotes, because 
>> it's going to convert single to double
> 
> I prefer single quotes because they are easier to type.

I tend to use the convention of double quotes for strings seen
by the outside world, and single quotes for internal constants
(such as enumerated types that happen to be represented by
strings).

I guess this means I can't use Black. :-(

-- 
Greg



More information about the Python-list mailing list