# The other side of the decision
# else runs when the if condition is False

# ─────────────────────────────────────────────
# Basic if / else
# ─────────────────────────────────────────────

temperature = 20

if temperature > 30:
    print("It's hot outside.")    # skipped — condition is False
else:
    print("It's not that hot.")   # runs

temperature = 35

if temperature > 30:
    print("It's hot outside.")    # runs — condition is True
else:
    print("It's not that hot.")   # skipped

# ─────────────────────────────────────────────
# Real use cases
# ─────────────────────────────────────────────

score = 45

if score >= 60:
    print("You passed.")
else:
    print("You failed. Try again.")

age = 16

if age >= 18:
    print("Access granted.")
else:
    print("Access denied.")

is_logged_in = False

if is_logged_in:
    print("Welcome back.")
else:
    print("Please log in first.")

# ─────────────────────────────────────────────
# Quick reference
# ─────────────────────────────────────────────

# if condition:        — checked first
#     block A          — runs if True
# else:                — no condition, catches everything else
#     block B          — runs if False
#
# one of the two blocks always runs — never both, never neither
# else must always be paired with an if — never alone
