Cakeprehensions: A Recipe for Success with Comprehensions - Melanie Arbor (Nbpy2025) @NorthBayPython
Cakeprehensions: A Recipe for Success with Comprehensions - Melanie Arbor (Nbpy2025)  @NorthBayPython
Uploaded April 2025 | Updated September 2026, 4 hours ago
Melanie Arbor

pretalx.northbaypython.org/nbpy-2025/talk/E7L3BV

Have you seen Python’s comprehensions but found them odd and intimidating? You’re not alone! Whether you’re just starting out with Python, or you’ve been using it for a long time, I wouldn’t blame you for steering clear of the strange “this for this in that” syntax. But fear not; I will rescue you with cake!

We'll walk through for loops, and how comprehensions are their tasty cousins. We'll talk about the various comprehensions we have at our disposal, including dictionary comprehensions, and comprehensions with conditionals. And then, like a towering 3-tiered cake, we'll try our hand at nested comprehensions.

This talk will arm you with a mental anchor to fall back on every time you write a comprehension, regardless of how simple or complex. Over time—if you use this recipe enough—you won’t even need to crack open the cookbook. We will ask…

What do we want? Cake!
When do we want it? As we loop over this iterable!

You’ll leave hungry for those confusing-looking Python treats… and cake.

Sat Apr 26 15:15:00 2025 at Reis River Ranch

Produced by NDV: youtube.com/channel/UCQ7dFBzZGlBvtU2hCecsBBg?sub_confirmation=1
Cakeprehensions: A Recipe for Success with Comprehensions - Melanie Arbor (Nbpy2025)What is a PLC and how do I talk Python to it? - Jonas Neubert (North Bay Python 2019)SVGs, Lasers, Reality, and You - Evan Kohilas (North Bay Python 2023)Script Layering for large-scale number crunching in PythonOn Quiet DevelopersGuide to Software Engineering for Visually ImpairedWhat is a Coroutine Anyway? - John Reese (North Bay Python 2019)PhD not required: a laypersons guide to reading journal articlesMagical (or not) GraphQL - David Lord (Nbpy2024)How To Build a Terrible Robot - Paloma Fautley (North Bay Python 2019)Automated accessibility audits - Pamela Fox (North Bay Python 2023)All in the timing: How side channel attacks work
North Bay Python |

"Cakeprehensions: A Recipe for Success with Comprehensions" - Melanie Arbor (Nbpy2025)

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER