More than two paths
elif ("else if") checks another condition when the earlier ones were false. Python tests them in order and runs the first match it finds.
score = 87
if score >= 90:
grade = "A"
elif score >= 80:
grade = "B"
elif score >= 70:
grade = "C"
else:
grade = "F"
print(grade) # B
Order matters. With >= 80 written first, a score of 95 would be graded B — always write the strictest condition first.
Combining conditions
and needs both sides true, or needs one of them, not flips a boolean.
age = 20
has_id = True
if age >= 18 and has_id:
print("Welcome in")
Reading your conditions out loud — "18 or over and has ID" — is the fastest way to check they say what you mean.