Python Snacks logo
Python Snacks
AdvertiseContact
Subscribe
  • Python Snacks
  • Topics
  • intermediate

intermediate

Targets readers with some Python experience. These posts assume a working knowledge of core syntax and explore concepts in more depth, often covering best practices, idioms, and real-world use cases.

best-practicescomparisongeneratorscareertype hintspythonic thinkingbeginnerdecoratorsreferencedocumentationmetaprogrammingdata analysisfunctionscheat sheetdata structuresartificial intelligencetool-reviewadvancedwebsecurityOne-Offssnippettoolingworkflowstandard librarybreakdownpackagechecklisttemplateintermediateclicase-studyquick winpackagingasynccontrol flowgotchasoopdeep diveperformance
pythonic thinkingpythonic thinking
+3+3
t-strings in Python 3.14
Jul 19, 2025

t-strings in Python 3.14

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

Hamna Rashid
Hamna Rashid
artificial intelligenceartificial intelligence
+3+3
Generative vs Discriminative AI in Python
Jul 09, 2025

Generative vs Discriminative AI in Python

Learn when to use Generative and Discriminative AI with practical Python examples.

Hamna Rashid
Hamna Rashid
snippetsnippet
+2+2
Faster String Slicing in NumPy
Jul 02, 2025

Faster String Slicing in NumPy

A new vectorized approach to slicing string arrays in NumPy, shown to be up to 25x faster!

Hamna Rashid
Hamna Rashid
comparisoncomparison
+2+2
Running Shell Commands in Python (the right way)
Jun 25, 2025

Running Shell Commands in Python (the right way)

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

Brandon Molyneaux
Brandon Molyneaux
snippetsnippet
+2+2
Using Python's LRU Cache
Jun 18, 2025

Using Python's LRU Cache

Caching your program's output can increase significantly. Using Python's functools.lru_cache decorator makes creating caches easy.

Brandon Molyneaux
Brandon Molyneaux
toolingtooling
+2+2
Using pre-commit hooks for your Python project
Jun 11, 2025

Using pre-commit hooks for your Python project

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

Brandon Molyneaux
Brandon Molyneaux
comparisoncomparison
+2+2
4 Python Click package extensions you need right now
Jan 08, 2025

4 Python Click package extensions you need right now

If you've ever built a CLI application using Click, don't overlook these extensions.

Brandon Molyneaux
Brandon Molyneaux
toolingtooling
+2+2
The Basics of Git for Python Code
Dec 04, 2024

The Basics of Git for Python Code

Keep your code under source control by leveraging the most popular version control tool out there: Git

Brandon Molyneaux
Brandon Molyneaux
metaprogrammingmetaprogramming
+2+2
4 types of Python dunder (magic) methods you should know
Nov 27, 2024

4 types of Python dunder (magic) methods you should know

Dunder methods can change your python game significantly if you know how to leverage them correctly.

Brandon Molyneaux
Brandon Molyneaux
comparisoncomparison
+2+2
The difference between __repr__ and __str__
Nov 20, 2024

The difference between __repr__ and __str__

Understanding Python’s String Representations for Developers and Users

Brandon Molyneaux
Brandon Molyneaux
intermediateintermediate
+2+2
Part 3: Mastering Object Oriented Programming: 3 OOP Design Patterns
Oct 30, 2024

Part 3: Mastering Object Oriented Programming: 3 OOP Design Patterns

In this multi-part series, I'm explaining the basics of object oriented programming (OOP) in Python.

Brandon Molyneaux
Brandon Molyneaux
intermediateintermediate
+2+2
Part 2: Mastering Object Oriented Programming: The 4 Principals of OOP
Oct 23, 2024

Part 2: Mastering Object Oriented Programming: The 4 Principals of OOP

In this multi-part series, I'm explaining the basics of object oriented programming (OOP) in Python.

Brandon Molyneaux
Brandon Molyneaux
Become a better software engineer with Python.

Python Snacks

Become a better software engineer with Python.

Home

Posts

Authors

Account

Upgrade

Advertise

Advertise

© 2025 Python Snacks.

Privacy policy

Terms of use

Powered by beehiiv