# COMMON IF MISTAKES
# Each block shows the wrong way, the error it produces, and the right way
# Read through — don't just run it top to bottom

# ─────────────────────────────────────────────
# MISTAKE 1 — Using = instead of ==
# ─────────────────────────────────────────────

score = 90

# Wrong — SyntaxError
# if score = 90:
#     print("Excellent.")

# Right
if score == 90:
    print("Excellent.")

# ─────────────────────────────────────────────
# MISTAKE 2 — Missing the colon
# ─────────────────────────────────────────────

# Wrong — SyntaxError
# if score >= 60
#     print("Passed.")

# Right
if score >= 60:
    print("Passed.")

# ─────────────────────────────────────────────
# MISTAKE 3 — Wrong indentation
# ─────────────────────────────────────────────

# Wrong — IndentationError
# if score >= 60:
# print("Passed.")

# Right — 4 spaces, always
if score >= 60:
    print("Passed.")

# ─────────────────────────────────────────────
# MISTAKE 4 — Wrong order in elif
# ─────────────────────────────────────────────

score = 95

# Wrong — broad condition first, specific ones never reached
if score >= 60:
    print("Passed.")       # always runs first, even for 95
# elif score >= 90:
#     print("Excellent.")  # never reached

# Right — most specific condition first
if score >= 90:
    print("Excellent.")    # runs for 95
elif score >= 60:
    print("Passed.")       # only if above failed

# ─────────────────────────────────────────────
# MISTAKE 5 — Comparing strings with the wrong case
# ─────────────────────────────────────────────

window = "Y"

# Wrong — condition fails silently
if window == "y":
    print("Window seat added.")    # never runs

# Right — normalize before comparing
if window.lower() == "y":
    print("Window seat added.")    # runs

# ─────────────────────────────────────────────
# MISTAKE 6 — else catches more than you think
# ─────────────────────────────────────────────

score = 110

if score >= 90:
    print("Excellent.")
elif score >= 60:
    print("Passed.")
else:
    print("Failed.")    # runs for 110 — and for -5 — is that correct?

# always think about what your fallback actually covers
