Skip to content
beginner to intermediate

Working with Data

Work confidently with lists, dictionaries, files, CSV, JSON, sorting, filtering, and other everyday data tasks.

Tutorials

Articles in Working with Data

Follow these lessons in order, or jump directly to the topic you need.

A vast desert landscape featuring acacia and palm trees under a clear blue sky.
beginner
8 min read

Lists in Python

A Python list is not just a container. It is an ordered, changeable collection that stores many values in one variable and lets you grow, shrink, or…

Read tutorial
Aerial view of a sunny beach in Corpus Christi with waves and coastal buildings.
beginner
9 min read

Dictionaries in Python

Dictionaries have been my favorite data structure throughout my 20 years as a software engineer. When I interviewed at Google, one of the problems I was…

Read tutorial
Vibrant colored dye powders in sacks at a market, showcasing traditional craftsmanship.
beginner
8 min read

Tuples and Sets in Python

If you already know how to use lists in Python, you have the foundation for two more data structures that solve specific problems. Tuples protect fixed…

Read tutorial
Vibrant autumn landscape featuring a solitary oak tree in a green field under a cloudy sky.
beginner
10 min read

Basic File I/O in Python

A Python program that never touches a file forgets everything the moment it exits. File I/O is how your code keeps data after the run ends—saving notes,…

Read tutorial
Close-up of hands typing on a wireless keyboard at a modern workspace.
beginner
8 min read

Working with JSON in Python

JSON is the closest thing programming has to a shared language. When one program needs to send data to another—across the internet, between a server and an…

Read tutorial
Teacher conducting a lesson with engaged students in a modern classroom setting.
beginner
11 min read

How to Count Words in Python

Counting words in Python sounds trivial until you try it on real text. The moment your sentence contains a comma, a capital letter, or an ellipsis, the…

Read tutorial