Truthy/Falsy Value Flashcards
Is 0.0 (float) truthy or falsy?
Falsy
Is -1 truthy or falsy?
Truthy
Any non-zero number is Truthy
Is an empty string “” truthy or falsy
Falsy
Is this “ “ (non-empty String) truthy or falsy
Truthy
Is this “abc” truthy or falsy
Truthy
Is an empty list [] truthy or falsy
Falsy
Is None truthy or falsy
Falsy
Is this list [None] truthy or falsy
Truthy
Is this list [0] truthy or falsy
Truthy
Is an empty tuple () truthy or falsy
Falsy
Is an empty set truthy or falsy
Falsy
Is an empty dict truthy or falsy
Falsy
Is an empty range range(0) truthy or falsy
Falsy
Are class instances truthy or falsy by default
Truthy
Is the string “False” truthy or falsy
Truthy
Because it’s simply a non-empty String
Is float(‘inf’) truthy or falsy
Truthy