【发布时间】:2022-12-04 12:53:35
【问题描述】:
I just learned there are truthy and falsy values in python which are different from the normal True and False.
Can someone please explain in depth what truthy and falsy values are? Where should I use them? What is the difference between truthy and True values and falsy and False values?
bool(value)results inTrue, thenvalueis truthy.__nonzero__and__bool__