Nov-30-2018, 07:29 PM
(Nov-30-2018, 07:33 AM)Gribouillis Wrote:The fuller quote from the link ismicseydel Wrote:Don't compare boolean values to True or False using ==But it means that you can writeif condition is FalseThe semantics is slightly different fromif not conditionOne can reasonably argue that good python code should not rely on such slight differences.
Quote:Don't compare boolean values to True or False using ==.
Yes: if greeting: No: if greeting == True: Worse: if greeting is True: