Boolean values | Sololearn: Learn to code for FREE!


Boolean values

What's the difference between true and True, i know that python is case sensitive but what's the difference between the uppercase and lowercase? Can't we use both seperately.

9/2/2019 3:50:44 AM


1 Answer

New Answer


They're very different: "True" is a boolean type value, "true" is just a name you can use for a variable. print(True) # True true = 42 print(true) # 42