6 ms·
This is probably what the parent meant: >>> 'truthy' if None else 'falsy' 'falsy' >>> 'truthy' if False else 'falsy' 'falsy' >>> 'truthy'
by taway2012 13y ago
This is probably what the parent meant:
>>> 'truthy' if None else 'falsy'
'falsy'
>>> 'truthy' if False else 'falsy'
'falsy'
>>> 'truthy' if 0 else 'falsy'
'falsy'