// blog

Articles

// 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
// Data Structures
Using Tuples in Your Code

The idea
You know what a tuple is and why it exists.
Now let's look at what you can actually do with one — the patterns you'll see and use in real code.
Indexing and slic…

06 May 2026 2 min read files [1] comments [0] 18 views
// Data Structures
Tuple Mini Project — Temperature Converter

What you're building
Rebuilding, actually, one of your first projects. The temperature converter. The user picks a conversion mode and enters a temperature. The program looks up …

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