Skip to content

Weekly Python Learning Recap - Week 3

Posted on:May 9, 2025 at 08:08 PM

Continuing a set of journal entries where I’m working through Automate the Boring Stuff with Python to strengthen my logic and programming skills. Been in management for close to 6 years now and I’m beginning to feel my logic skills atrophy. I’m hoping that by working through this book on a weekly basis while practicing Leetcode-style questions will help sharpen those skills to the point of where I was 5 years ago.

I plan to keep a log here and continue to learn in public. I’ll be tracking the progress this Github repo.


🗓️ Dates Covered:


📚 What I Studied


🧠 What I Learned


🔁 Repeated Patterns or Skills Practiced


⚔️ Challenges I Faced


✅ Wins of the Week


🔮 What’s Next


🧾 Favorite Snippet of the Week

def categorize_spells(spells):
    categorized_spells = {}
    for spell in spells:
        spell_name, spell_category = spell.split(':')
        spell_category = spell_category.strip().title()
        categorized_spells.setdefault(spell_category, [])
        categorized_spells[spell_category].append(spell_name)
        categorized_spells[spell_category] = sorted(
            categorized_spells[spell_category])
    return categorized_spells