The following comparisons produce True:
>>> '1' in '11'
True
>>> ('1' in '11') == True
True
And with the parentheses the other way, I get a TypeError:
>>> '1' in ('11' == True)
Traceback (most recent call last):
File "", line 1, in
TypeError: argument of type 'bool' is not iterable
So how do I get False with no parentheses?
>>> '1' in '11' == True False
Your Answer
0 answers
Hot tools Tags
Hot Questions
Preserve Line Breaks From TextArea
2025-12-30 21:22:11
How to join two dataframes for which column values are within a certain range?
2025-12-30 21:01:08
How to import/include a CSS file using PHP code and not HTML code?
2025-12-30 20:43:33
Modifying list while iterating [duplicate]
2025-12-30 20:22:19
Style input element to fill remaining width of its container
2025-12-30 20:01:22
Popular tool
vc9-vc14 (32+64 bit) runtime library collection (link below)
Download the collection of runtime libraries required for phpStudy installation
VC9 32-bit
VC9 32-bit phpstudy integrated installation environment runtime library
PHP programmer toolbox full version
Programmer Toolbox v1.0 PHP Integrated Environment
VC11 32-bit
VC11 32-bit phpstudy integrated installation environment runtime library
SublimeText3 Chinese version
Chinese version, very easy to use
Hot Topics
Douyin level price list 1-75
20416
7
20416
7
wifi shows no ip assigned
13574
4
13574
4






