Skip to content

Conditions and Logic

Provided Files

Example Code

Model 1

type(True)
type(true)
type(3 < 4)
print(3 < 4)
three = 3
four = 4
print(three == four)
check = three > four
print(check)
type(check)
print(three = four)
three = four
print(three == four)

Model 2

a = 3
b = 4
c = 5

print(a < b and b < c)
print(a < b or b < c)
print(a < b and b > c)
print(a < b or b > c)
print(not a < b)
print(a > b or not a > c and b > c)