Python Morsels
  • Articles
  • Screencasts
  • Exercises
  • Python Tips
  • Tools
    Python Pastebin Online Python REPL f-string formatter strptime undataclass Python Glossary
  • Python Jumpstart
/
  • Sign Up
  • Sign In

Python Articles on Data Structures

These articles are all about Python's core structures: lists, tuples, sets, and dictionaries.

What are lists in Python?
3 mins
How to make a tuple
5 mins
List slicing in Python
5 mins
Sequences in Python
2 mins
Checking for an empty list in Python
2 mins
Python's list constructor: when and how to use it
6 mins
Avoid indexes in Python
6 mins
Flatten a list of lists in Python
5 mins
Remove duplicates from a list in Python
3 mins
Counting occurrences in Python with collections.Counter
5 mins
Python Big O: the time complexities of different data structures in Python
9 mins
Merging dictionaries in Python
5 mins
List containment checks
3 mins
Using dictionaries in Python
2 mins
Looping over dictionaries
3 mins
What is a mapping?
3 mins
Removing a dictionary key
4 mins
Are dictionaries ordered in Python?
3 mins
Practical uses of sets
5 mins
The list insert method
5 mins
Setting default dictionary values in Python
7 mins
Lexicographical ordering in Python
5 mins
See all articles

Watch a new Python screencast every week

Profile picture of Trey

My name is Trey Hunner. I do corporate Python training for teams and I teach Python online through Python Morsels.

In Python Morsels, I publish a new Python screencast every week.

If you want to learn something new every week, join Python Morsels!

Join Python Morsels ✨
Python Morsels logo: an adorable green snake wrapped around a large chocolate chip cookie with a bite taken out of it (presumably the snake has taken a bite of this cookie)
© 2025
New User
  • Testimonials
  • Team Plans
  • Pricing
  • Redeem Code
About
  • Feature History
  • Privacy Policy
  • About Us
  • Get Reimbursed
Quick Resources
  • Python Terminology
  • Python Resources
  • Python Training
  • Python Team Training
  • Trey's Blog
Learn a Python Tip every week 💌

Join my newsletter to fill-in gaps in your Python skills. Every Wednesday, I share a Python tip.