Check your understanding of the previous reading: 36 expressions to classify as True or False, according to the rules of Truthiness in Python. The source quiz drew 12 of these at random per attempt; here they are all, grouped into six sets of six.
if statement?"0"1 > 5 or 31 > 5 is False, so or evaluates its right side, 3, which is truthy." "0.0"Corgis are cute"""if statement?-5.0-0-0 is just 0 for integers; Python has no negative zero.0.01-12332134342144if statement?10''"False"False; any non-empty string is truthy.'"'"True"True; non-empty strings are always truthy.if statement?"1 > 5"8-4*2* binds tighter than -, so this is 8 - 8, which is 0.1+01, a non-zero integer.1/20.5, a non-zero float.FalseNoneNone is always falsy.if statement?"Hermione"[4:4]"Harry"[1:-1]"arr", a non-empty string."Harry"[0]"H"."".upper()"".upper(), this is the method itself (a callable object), not its result; objects like this are truthy."HI".lower()"hi", a non-empty string.if statement?1 or 01 is truthy, so or short-circuits and returns 1.1 and 01 is truthy, so and evaluates and returns its right side, 0.-5 and 5-5 is truthy (non-zero), so and returns its right side, 5, which is also truthy.-1 < 4 and 0-1 < 4 is True, so and returns its right side, 0, which is falsy.5 < 4 and 35 < 4 is False, so and short-circuits and returns False without even looking at 3."Hi" and "Low" and """" is falsy, so that is what and returns.