// blog

Articles

// Data Structures
Dict Mini Project — Shopping List

What you're building
The shopping list is back. But this time each item has a quantity and a price.
A dict instead of a list. More data per entry. Total at checkout.
What you n…

06 May 2026 2 min read files [1] comments [0] 18 views
// Data Structures
Dict Mini Project — Pet Shop

What you're building
A pet shop manager. Each animal has a name, species, price, and availability.
The user can view all animals, search by name, and mark one as sold.
What you…

06 May 2026 2 min read files [1] comments [0] 18 views
// Data Structures
Common Dict Mistakes

You've covered dicts from every angle. Here are the mistakes that show up most often — and how to fix them.
1. KeyError — accessing a key that doesn't exist
soldier …

06 May 2026 2 min read files [1] comments [0] 18 views
// Data Structures
Dicts — The Full Picture

You've covered dicts from every angle. Before moving on, here's everything in one place.
// Creating dicts
{"key": value} # literal
{} # emp…

06 May 2026 1 min read files [1] comments [0] 18 views
// Data Structures
This One's Yours — Dicts

A dict is just a key and a value. Until you know what to do with it.
get() when you're not sure. update() when data changes. pop() when something's done. items() when you need ev…

06 May 2026 1 min read files [1] comments [0] 18 views
// Data Structures
Meet the Tuple: Like a List That Won't Budge

The problem...
You have a list of coordinates. Latitude and longitude. Two values that belong together and should never change.
location = [44.4268, 26.1025]
A list works. But …

06 May 2026 2 min read files [0] comments [0] 18 views