Logo
Python Snacks
Logo
Articles
Advertise
Contact
Books
Login
Sign Up
Logo
Python Snacks
Logo

Python Snacks Articles

Dive into a collection of past posts and rediscover timeless content.

Using pre-commit hooks for your Python project

Using pre-commit hooks for your Python project

We all forget to format, lint, and make sure print statements are removed.

Jun 11, 2025

•

7 min read

Python's match/case Statements: The Equivalent of Switch Statements

Python's match/case Statements: The Equivalent of Switch Statements

This feature, used in Python 3.10+, is an alternative to if/elif/else blocks. See how case and match statements are used.

Jun 4, 2025

•

5 min read

The Simplest Way to Understand The Difference Between For Loops and While Loops

The Simplest Way to Understand The Difference Between For Loops and While Loops

There's a major difference between for and while loops, and this explanation hits the key difference.

Mar 12, 2025

•

6 min read

A Cheat Sheet for Type Hinting in Python

A Cheat Sheet for Type Hinting in Python

Here's why you should be using type hinting for your python code - it's nothing but beneficial!

Feb 19, 2025

•

5 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

Load more
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

© 2026 Python Snacks.
beehiivPowered by beehiiv