Closed fernandosavio closed 3 years ago
When testing if a variable contains an empty string, we should use a comparison operator instead of the identity operator. Or else a SyntaxWarning is raised (tested on Python 3.8).
SyntaxWarning: "is" with a literal. Did you mean "=="?
When testing if a variable contains an empty string, we should use a comparison operator instead of the identity operator. Or else a SyntaxWarning is raised (tested on Python 3.8).