1
2a = True # dont forget capital T and F, it is case sensitive
3b = False
4
5if b == True:
6 print("b is true")
7
8if b:
9 print("b is true") # this is the shorthand of the above IF statement
10
11if b == False:
12 print("b is false") # again dont forget True and False are case sensitive
13
1#Example I found:
2
3my_boolean = 1
4print(bool(my_boolean))
5
6my_boolean = 0
7print(bool(my_boolean))
8
9my_boolean = 10
10print(bool(my_boolean))
11
12print("Coding" == "fun")