# One variable. Multiple values.
# list creation — every way Python lets you build one

# ─────────────────────────────────────────────
# List literal — values known upfront
# ─────────────────────────────────────────────

squad = ["Raven", "Wolf", "Ghost", "Viper", "Bull"]
print(squad)
# ['Raven', 'Wolf', 'Ghost', 'Viper', 'Bull']

scores = [98, 74, 85, 91, 63]
print(scores)
# [98, 74, 85, 91, 63]

flags = [True, False, True, True]
print(flags)
# [True, False, True, True]

mixed = ["Raven", 98, True, 3.14]    # valid — but unusual in practice
print(mixed)
# ['Raven', 98, True, 3.14]

# ─────────────────────────────────────────────
# Empty list — values added later
# ─────────────────────────────────────────────

roster = []           # most common way
backup = list()       # same result — both valid

print(roster)         # []
print(backup)         # []

# ─────────────────────────────────────────────
# list(range()) — number sequences
# ─────────────────────────────────────────────

levels = list(range(1, 6))
print(levels)
# [1, 2, 3, 4, 5]

countdown = list(range(10, 0, -1))
print(countdown)
# [10, 9, 8, 7, 6, 5, 4, 3, 2, 1]

even = list(range(0, 11, 2))
print(even)
# [0, 2, 4, 6, 8, 10]

hundred = list(range(100))           # 0 to 99 — start defaults to 0
print(len(hundred))
# 100

# ─────────────────────────────────────────────
# list() on a string — each character becomes an element
# ─────────────────────────────────────────────

letters = list("Bull")
print(letters)
# ['B', 'u', 'l', 'l']

callsign = list("RedHorn")
print(callsign)
# ['R', 'e', 'd', 'H', 'o', 'r', 'n']

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

# ["a", "b", "c"]       — list literal, values inside square brackets
# []                    — empty list
# list()                — empty list (same as [])
# list(range(n))        — [0, 1, 2, ..., n-1]
# list(range(a, b))     — [a, a+1, ..., b-1]
# list(range(a, b, s))  — [a, a+s, a+2s, ...] up to b
# list("text")          — ['t', 'e', 'x', 't']
#
# range() alone is NOT a list — list() converts it
# square brackets create a list — parentheses do not
