# Position and value — at the same time
# enumerate() — no counter, no manual increment

# ─────────────────────────────────────────────
# The old way — manual counter
# ─────────────────────────────────────────────

word = "Bull"
index = 0

for letter in word:
    print(f"Index {index}: {letter}")
    index += 1

# Index 0: B
# Index 1: u
# Index 2: l
# Index 3: l

# ─────────────────────────────────────────────
# The clean way — enumerate()
# ─────────────────────────────────────────────

word = "Bull"

for index, letter in enumerate(word):
    print(f"Index {index}: {letter}")

# Index 0: B
# Index 1: u
# Index 2: l
# Index 3: l

# same result — no counter, no increment

# ─────────────────────────────────────────────
# Starting from a different index
# ─────────────────────────────────────────────

word = "Bull"

for index, letter in enumerate(word, start=1):
    print(f"Position {index}: {letter}")

# Position 1: B
# Position 2: u
# Position 3: l
# Position 4: l

# ─────────────────────────────────────────────
# Real example — with input()
# ─────────────────────────────────────────────

word = input("Enter a word: ")

for index, letter in enumerate(word, start=1):
    print(f"Letter {index} is '{letter}'")

# Enter a word: Horn
# Letter 1 is 'H'
# Letter 2 is 'o'
# Letter 3 is 'r'
# Letter 4 is 'n'

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

# for index, item in enumerate(sequence):
#     — index: current position (starts at 0)
#     — item: current value
#
# for index, item in enumerate(sequence, start=1):
#     — starts at 1 instead of 0
#
# variable names are up to you — i, letter, pos, char — all valid
# no manual counter needed
