Logo
Python Snacks
Logo
Articles
Advertise
Contact
Books
Sign Up

data structures

Lists, dicts, sets, tuples, mutability, performance.


A Guide to Stacks and Queues in Python

A Guide to Stacks and Queues in Python

Stacks and queues are essential data structures to know, especially if you're wanting to get into FAANG/MANGO companies.

Dec 3, 2025

•

9 min read

Shallow copies vs deep copies in Python

Shallow copies vs deep copies in Python

Here's how you go about copying data structures in your Python code.

Oct 1, 2025

•

6 min read

The differences between Mutable and Immutable data types in Python

The differences between Mutable and Immutable data types in Python

A beginner-friendly guide to why some variables change behind your back (and others don't)

Feb 12, 2025

•

5 min read

The 3 Step Process on Writing List Comprehensions Easily

The 3 Step Process on Writing List Comprehensions Easily

See how you can convert Python for loops into list comprehensions in 3 simple steps.

Oct 2, 2024

•

7 min read

6 ways to flatten Python lists

6 ways to flatten Python lists

Practical Techniques for Flattening Lists in Python, from Simple Tricks to Advanced Methods

Jan 3, 2024

•

7 min read

Python Dictionary Comprehension: A Simple Explanation

Python Dictionary Comprehension: A Simple Explanation

It's just like list comprehension, except with a dictionary!

Nov 15, 2023

•

5 min read

background

Become a better software engineer today.

Newsletter

Login

Upgrade to Pro

Sample Issue

Advertise

Tools

Tutorials

Templates

Resources

Newsletter

Blog

Latest Posts

Experts

Creators

Most Popular

Resources

Support

Recommendations

Software Engineering Books

© 2025 Python Snacks.

Report abuse

Privacy policy

Terms of use

Powered by beehiiv