Comparison operators
A comparison produces a boolean. Use comparisons to check ordering or equality before deciding what to do next.
Check a score against a target
Use >= for at least, and == for equality.
score = 10
print(score >= 8)
print(score == 8)
true
false
Ten is at least eight, but the two numbers are different.