Boolean values | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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.

2nd Sep 2019, 3:50 AM
DINESH REDDY
DINESH REDDY - avatar
1 Answer
+ 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
2nd Sep 2019, 4:10 AM
Diego
Diego - avatar