Strings: double versus single quotes

Chris Angelico rosuav at gmail.com
Sat May 23 11:40:34 EDT 2020


On Sat, May 23, 2020 at 10:52 PM Abdur-Rahmaan Janhangeer
<arj.python at gmail.com> wrote:
>
> The interpreter prefers single-quotes
>
> >>> "single or double"
> 'single or double'
>
>>> 'not all that strongly, it doesn\'t'
"not all that strongly, it doesn't"

ChrisA


More information about the Python-list mailing list