Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 276 Bytes

Python_crib_notes-Lit_bool.md

File metadata and controls

24 lines (18 loc) · 276 Bytes

Boolean

< Back


bool True | False

x = (1 == True)
y = (1 == False)
a = True + 4
b = False + 10

print("x is", x)
print("y is", y)
print("a:", a)
print("b:", b)

# x is True
# y is False
# a: 5
# b: 10