Python uses if, elif, and else for decisions. Compare with ==, !=, <, >, and combine with and, or, not. The ternary form: value = 'yes' if condition else 'no' is a clean one-line conditional expression.
if / elif / else
score = 85
if score >= 90:
grade = "A"
elif score >= 70:
grade = "B"
else:
grade = "C"
print(grade) # B
# One-liner ternary
result = "pass" if score >= 50 else "fail"