# continue — the polite skip
# continue skips the rest of the current iteration and moves to the next

# ─────────────────────────────────────────────
# Basic continue
# ─────────────────────────────────────────────

word = "Bull"

for letter in word:
    if letter == "u":
        continue
    print(letter)

# B
# l
# l
# "u" is skipped — loop keeps running

# ─────────────────────────────────────────────
# What's really happening
# ─────────────────────────────────────────────

# Without continue:
# B → print
# u → print
# l → print
# l → print

# With continue on "u":
# B → print
# u → continue → skip print → next iteration
# l → print
# l → print

# ─────────────────────────────────────────────
# Real example — skip spaces
# ─────────────────────────────────────────────

word = input("Enter a word: ")

for letter in word:
    if letter == " ":
        continue
    print(letter)

# every space is skipped — everything else prints

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

# continue skips the rest of the current iteration — not the whole loop
# the loop keeps running — only that one iteration is cut short
# always use with a condition — alone it would skip everything
# everything after continue in the same iteration is ignored
