The Real Python Podcast

Rodrigo Girão Serrão: Python Training, itertools, and Idioms


Listen Later

Once you’ve learned the vocabulary and syntax of the Python language, how do you progress into learning the right combinations to put into your code? How can Python’s built-in itertools library enhance your skills? This week on the show, we speak with Rodrigo Girão Serrão about teaching Python through his blog and his passion for the itertools library.

We discuss Rodrigo’s different approaches to writing on his blog. He likes to document smaller concepts about Python and building code in his “Today I Learned” series. He’s also been collecting advice about the best way to use core Python features in another series called “Pydon’ts.”

We cover his recent PyCon US tutorial about the built-in itertools module. The functions contained in the module create iterators for efficient looping. We discuss the categories of tools inside the collection and ways to simplify your code.

We also explore the concept of vocabulary versus idioms in writing. Idioms are a group of words that hold a symbolic meaning that goes beyond the literal meaning of the individual words. We dig into how that applies to learning Python and building a personal collection of programming idioms.

This episode is sponsored by AMD.

Course Spotlight: Working With Missing Data in Polars

In this video course, you’ll learn how to deal with missing data in Polars to ensure it doesn’t interfere with your data analysis. You’ll discover how to check for missing values, update them, and remove them.

Topics:

  • 00:00:00 – Introduction
  • 00:02:34 – Creating Polars video course
  • 00:03:27 – How did you start programming and teaching Python?
  • 00:04:59 – Where did mathspp come from?
  • 00:05:38 – Exploring math and programming in university
  • 00:07:48 – Learning APL
  • 00:09:24 – What goes into building the blog?
  • 00:15:05 – The Pydon’ts and writing books
  • 00:18:37 – PyCon US 2025
  • 00:20:46 – Sponsor: AMD
  • 00:21:23 – Teaching a tutorial about itertools
  • 00:28:58 – Categorizing itertools
  • 00:40:39 – Video Course Spotlight
  • 00:41:55 – The difference between me and Shakespeare
  • 00:46:51 – Learning and practicing with idioms
  • 00:51:01 – TIL and asking questions
  • 00:53:54 – What are you excited about in the world of Python?
  • 00:55:40 – What do you want to learn next?
  • 00:57:35 – How can people follow your work online?
  • 01:01:19 – Thanks and goodbye
  • Show Links:

    • mathspp blog
    • TIL (Today I Learned) - mathspp
    • Working With Missing Data in Polars
    • Paul Valéry - “A poem is never finished” - Oxford Reference
    • Personal highlights of PyCon US 2025 - mathspp
    • PyCon US 2025 Lightning Talks - Friday, May 16th, 2025 PM - YouTube
    • PyCon US 2025 Tutorial Sneak Peek: “Reimplement itertools for fun & profit” Rodrigo Girão Serrão - YouTube
    • Alan Perlis - Wikipedia
    • Epigrams on Programming
    • What learning APL taught me about Python - mathspp
    • What APL taught me about Python ⚡️ – lightning talk by Rodrigo Girão Serrão at EuroPython 2023 - YouTube
    • itertools — Functions creating iterators for efficient looping — Python 3.13.4 documentation
    • Module itertools overview - mathspp
    • The little book of itertools - mathspp
    • Python itertools By Example – Real Python
    • What’s new in Python 3.14 — Python 3.15.0a0 documentation
    • beehiiv — The newsletter platform built for growth
    • Python drops 🐍💧 newsletter - mathspp
    • Books - mathspp
    • Rodrigo Girão Serrão 🐍🚀 (@mathspp.com) — Bluesky
    • Rodrigo Girão Serrão - LinkedIn
    • Rodrigo 🐍🚀 (@[email protected]) - Fosstodon
    • Rodrigo 🐍🚀 (@mathsppblog) / X
    • Level up your Python skills with our expert-led courses:

      • Efficient Iterations With Python Iterators and Iterables
      • Working With Python Polars
      • Working With Missing Data in Polars
      • Support the podcast & join our community of Pythonistas

        ...more
        View all episodesView all episodes
        Download on the App Store

        The Real Python PodcastBy Real Python

        • 4.7
        • 4.7
        • 4.7
        • 4.7
        • 4.7

        4.7

        136 ratings


        More shows like The Real Python Podcast

        View all
        Software Engineering Radio - the podcast for professional software developers by se-radio@computer.org

        Software Engineering Radio - the podcast for professional software developers

        273 Listeners

        The Changelog: Software Development, Open Source by Changelog Media

        The Changelog: Software Development, Open Source

        283 Listeners

        Data Skeptic by Kyle Polich

        Data Skeptic

        481 Listeners

        Talk Python To Me by Michael Kennedy

        Talk Python To Me

        592 Listeners

        Software Engineering Daily by Software Engineering Daily

        Software Engineering Daily

        624 Listeners

        The TWIML AI Podcast (formerly This Week in Machine Learning & Artificial Intelligence) by Sam Charrington

        The TWIML AI Podcast (formerly This Week in Machine Learning & Artificial Intelligence)

        443 Listeners

        Super Data Science: ML & AI Podcast with Jon Krohn by Jon Krohn

        Super Data Science: ML & AI Podcast with Jon Krohn

        296 Listeners

        Python Bytes by Michael Kennedy and Brian Okken

        Python Bytes

        214 Listeners

        Data Engineering Podcast by Tobias Macey

        Data Engineering Podcast

        142 Listeners

        Syntax - Tasty Web Development Treats by Wes Bos & Scott Tolinski - Full Stack JavaScript Web Developers

        Syntax - Tasty Web Development Treats

        983 Listeners

        CoRecursive: Coding Stories by Adam Gordon Bell - Software Developer

        CoRecursive: Coding Stories

        189 Listeners

        DataFramed by DataCamp

        DataFramed

        266 Listeners

        Practical AI by Practical AI LLC

        Practical AI

        189 Listeners

        The Stack Overflow Podcast by The Stack Overflow Podcast

        The Stack Overflow Podcast

        64 Listeners

        Latent Space: The AI Engineer Podcast by swyx + Alessio

        Latent Space: The AI Engineer Podcast

        77 Listeners