SyntaxFix
Write A Post
Hire A Developer
Questions
The simplicity of :
>>> 'str' in 'string' True >>> 'no' in 'yes' False >>>
is something i love about Python, I have seen a lot of not very pythonic idiom like that instead :
if 'yes'.find("no") == -1: pass