Here’s a quick one…
In Python one can do:
foo = foo1 if bar1 else foo2
And that’s cool, but how can I just get a True or False without having to write
foo = True if bar1 else False
For example, in JS you can forcibly cast a boolean type by doing
var foo = !!bar1;
Call
boolon the object: