Logo
Python Snacks
Logo
Articles
Advertise
Contact
Books
Sign Up

pythonic thinking

Comprehensions, idioms, unpacking, clean code.


Using Pre-commit Hooks for your Python Project

Using Pre-commit Hooks for your Python Project

Keep your code clean, consistent, and manageable with your team members.

Oct 15, 2025

•

6 min read

Python Generators - The One Tool to Add to Your Toolbelt

Python Generators - The One Tool to Add to Your Toolbelt

Sep 24, 2025

•

7 min read

Leveraging Pandas for Solving Business Problems

Leveraging Pandas for Solving Business Problems

A mini case study using patient data and one powerful Pandas function - groupby()

Sep 17, 2025

•

7 min read

Master Python Functions: From Basics to Power Features

Master Python Functions: From Basics to Power Features

A Deep Dive into Python’s Most Essential Building Block

Aug 27, 2025

•

8 min read

Introduction to Python's argparse library

Introduction to Python's argparse library

Understanding Command-Line Arguments in Python

Aug 23, 2025

•

7 min read

Automating YAML File Updates with Jinja Templates

Automating YAML File Updates with Jinja Templates

Use PyYAML + Jinja templating to simplify and speed up your configuration workflow

Aug 16, 2025

•

8 min read

Mastering timezones in Python with UTC

Mastering timezones in Python with UTC

This is the reason why you should use UTC for anything time-related.

Aug 13, 2025

•

7 min read

A Beginner’s Guide to Using OpenAI API with Python

A Beginner’s Guide to Using OpenAI API with Python

Learn how to connect Python to OpenAI's API and build smart workflows in minutes.

Aug 9, 2025

•

8 min read

An Overview of Companies using the FastAPI and Django Python Web Frameworks

An Overview of Companies using the FastAPI and Django Python Web Frameworks

See which major tech players are using Python's top web frameworks: Django and FastAPI

Jul 30, 2025

•

8 min read

An Introduction to t-strings in Python 3.14

An Introduction to t-strings in Python 3.14

New string formatter that brings security and structure to dynamic string composition.

Jul 19, 2025

•

7 min read

Running Shell Commands in Python (the right way)

Running Shell Commands in Python (the right way)

Leverage the subprocess module, but know there's a difference between subprocess.run() and subprocess.Popen()

Jun 25, 2025

•

5 min read

Paths in Python: Comparing os.path and pathlib modules

Paths in Python: Comparing os.path and pathlib modules

A quick guide to simplifying file path management in Python

Jan 1, 2025

•

6 min read

Python = vs ==: Understanding the Key Difference Between Assignment and Equality Operators

Python = vs ==: Understanding the Key Difference Between Assignment and Equality Operators

Learn when to use = for assignment and == for comparison to avoid common Python mistakes

Nov 6, 2024

•

5 min read

The purpose of __pycache__ directory

The purpose of __pycache__ directory

And here's why you don't need to touch it (for the most part)

May 29, 2024

•

5 min read

Cerberus: The One Package You Need for Data Validation

Cerberus: The One Package You Need for Data Validation

Plus: NumPy 2 release on the horizon, a tutorial on data cleaning, and more

Jan 17, 2024

•

5 min read

The difference between Break vs Continue in Python

The difference between Break vs Continue in Python

Jan 10, 2024

•

6 min read

Using the `get` method to fetch values from a Python dictionary

Using the `get` method to fetch values from a Python dictionary

Here's a quick tutorial as to why you should use this versus a try and except block.

Dec 13, 2023

•

3 min read

Exploring Python's Extended Unpacking

Exploring Python's Extended Unpacking

This feature that is not very well known within Python can help you manage your iterables in a clean and concise way.

Nov 29, 2023

•

5 min read

Python List Methods: 10 Essential Methods You Should Know

Python List Methods: 10 Essential Methods You Should Know

Python list methods make it simple to manage your lists—add, remove, or update elements with these built-in functions.

Nov 22, 2023

•

12 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