3 Answers
New AnswerNo, it's just a matter of personal preference. I personally like to leave a space between operators so it's easier to read and distinguish them from each other. Other than that, there is no difference.
Fran pep8 has something to say about that... https://www.python.org/dev/peps/pep-0008/#whitespace-in-expressions-and-statements but let pep20 be your guide... https://www.python.org/dev/peps/pep-0020/ OR >>>import this 😜👍
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message