What is Truthy and Falsy? How is it different from True and False?

前端 未结 6 1541
广开言路
广开言路 2020-11-21 04:16

I just learned there are truthy and falsy values in python which are different from the normal True and False.

6条回答
  •  难免孤独
    2020-11-21 05:22

    Falsy means something empty like empty list,tuple, as any datatype having empty values or None. Truthy means : Except are Truthy

提交回复
热议问题