Boolean values | Sololearn: Learn to code for FREE!

+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.

9/2/2019 3:50:44 AM

DINESH REDDY

1 Answer

New 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