Python 3.10.6 (tags/v3.10.6:9c7b4bd, Aug 1 2022, 21:53:49) [MSC v.1932 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license ()" for more information.
print( False == [])
False
print (bool ([]))
False
print (bool (1))
True
In the example above I tried print( False==[])
in python and it evaluates to False instead of True, but as both the value of False and bool([])
is False it should be True right?
The bool value of []
shows false but when I do False == []
it shows False, why is it not showing True?