1 Answer
New AnswerIt evaluates its argument (a variable or an expression) and returns its boolean (logic) value - whether the expression is True or False. >>> bool(2+2==4) True >>> bool(1==0) False
Sololearn Inc.
535 Mission Street, Suite 1591Send us a message