+ 1
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.
1 Réponse
+ 2
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