Boolean Operators | Sololearn: Learn to code for FREE!


Boolean Operators

I dont understand why 'True and False' are considered correct as boolean operators yet 'true and false' is not. Can someone please explain to me why this is so?

4/3/2020 7:46:38 PM

Mashiloane Phomelelo

2 Answers

New Answer


Because they are keywords, and keywords as identifiers (variable names, function names...) are case sensitive ^^ So, True and False exists, but not true and false (until you define them explicitly: true = True; false = False :P)