Strings: double versus single quotes
The interpreter prefers single-quotes
>>> "single or double"
'single or double'
I read a recent quote from Raymond Hettinger saying that the
Python world prefers double ones. If Mr Hettinger is around i'd
like to ask him where he pulled the theory from
Guess a personal choice thing ~
On Tue, May 19, 2020 at 10:20 PM Manfred Lotz <ml_news at posteo.de> wrote:
> Hi there,
> I am asking myself if I should preferably use single or double quotes
> for strings?
> If I need a single quote in a string I would use double quotes for the
> whole string and vice versa. For f-strings I mostly see double
> quotes but single quotes would work as well I think.
> Is there a recommendation?