$ ./guess_the_language
Problem Solving — predict the output
Problem Solving — predict the output · medium · #144
What is printed?
print(bool([]), bool([0]))
False True
True False
False False
True True
Emptiness decides truthiness, so a list holding 0 is still truthy.
Play Problem Solving ▸
◂ #143
all Problem Solving — predict the output questions
#145 ▸