Project 23: Band Name Blender 🎸¶

Difficulty: 🟢 Beginner

Run cells top to bottom. Each step builds on the previous one and saves real files under outputs/band_name_blender/.

← Back to index

Description¶

Mash adjectives and nouns into ridiculous band names — export a ready-to-share setlist title sheet.

Libraries & Modules¶

  • random

Python Concepts You'll Practice¶

Lists, f-strings, file export

🎛️ Parameter Variations¶

  • COUNT — how many names to invent
  • Word banks — add your own slang
In [1]:
# Install dependencies for this project (safe to re-run)
import sys
!{sys.executable} -m pip install pillow numpy matplotlib wordcloud qrcode[pil] python-barcode fpdf2 jinja2 folium plotly pandas scipy ipywidgets -q
Skipping pip install (already installed)
In [2]:
# Interactive Jupyter setup — run this cell first
%matplotlib inline

from pathlib import Path
from IPython.display import display, Image as IPImage, HTML, Markdown, Audio, IFrame

OUTPUT_DIR = Path("outputs") / "band_name_blender"
OUTPUT_DIR.mkdir(parents=True, exist_ok=True)
print(f"✅ Outputs folder: {OUTPUT_DIR.resolve()}")
✅ Outputs folder: C:\Users\Hansel Yan\Projects\CodeItAll\outputs\band_name_blender

Step 1 — Mix the word banks¶

In [3]:
import random

# 🎛️ TWEAK THESE
COUNT = 12
SEED = 7
ADJECTIVES = ["Neon", "Cosmic", "Salty", "Velvet", "Pixel", "Electric", "Rusty", "Midnight"]
NOUNS = ["Falcons", "Cacti", "Algorithms", "Noodles", "Comets", "Otters", "Synths", "Penguins"]

random.seed(SEED)
names = [f"The {random.choice(ADJECTIVES)} {random.choice(NOUNS)}" for _ in range(COUNT)]
for i, name in enumerate(names, 1):
    print(f"{i:02d}. {name}")
01. The Electric Algorithms
02. The Rusty Falcons
03. The Cosmic Cacti
04. The Electric Falcons
05. The Velvet Falcons
06. The Cosmic Synths
07. The Rusty Cacti
08. The Velvet Cacti
09. The Rusty Falcons
10. The Cosmic Noodles
11. The Neon Synths
12. The Neon Noodles

Step 2 — Save a setlist sheet¶

In [4]:
sheet = ["CODEITALL BAND NAME BLENDER", "=" * 32, ""]
sheet += [f"{i:02d}. {n}" for i, n in enumerate(names, 1)]
sheet += ["", "Encore idea: " + random.choice(names)]
text = "\n".join(sheet)
out = OUTPUT_DIR / "band_names.txt"
out.write_text(text, encoding="utf-8")
print(text)
print(f"Saved → {out}")
CODEITALL BAND NAME BLENDER
================================

01. The Electric Algorithms
02. The Rusty Falcons
03. The Cosmic Cacti
04. The Electric Falcons
05. The Velvet Falcons
06. The Cosmic Synths
07. The Rusty Cacti
08. The Velvet Cacti
09. The Rusty Falcons
10. The Cosmic Noodles
11. The Neon Synths
12. The Neon Noodles

Encore idea: The Electric Algorithms
Saved → outputs\band_name_blender\band_names.txt

✅ Project complete¶

Check your output folder: outputs/band_name_blender/

Next: Project 24: Emoji Mood Tracker · Index