Python 3.10 Fizzbuzz

Cameron Simpson cs at cskk.id.au
Wed Mar 1 16:38:01 EST 2023


On 26Feb2023 13:07, Hen Hanna <henhanna at gmail.com> wrote:
>is there any reason to prefer    "    over    '   ?

Not inherently.

It is only important if you want to embed one of those characters in a 
string, eg:

     x = "That's silly."

versus:

     x = 'That\'s silly.'

and the converse for the other quote character.

Cheers,
Cameron Simpson <cs at cskk.id.au>


More information about the Python-list mailing list