PyCon Lithuania 2026

Rodrigo Girão Serrão

Hi, I'm Rodrigo Girão Serrão from sunny Portugal 🇵🇹.

I'm a prolific Python author and speaker, with multiple books published independently and dozens of talks and tutorials given at the largest Python conferences in the world. I also blog frequently about Python and publish two Python newsletters: the weekly mathspp insider 🐍🚀 and the daily Python drops 🐍💧.

I have extensive experience teaching people from all walks of life – from kids in school, to professionals in various industries, to retirees – and there is a clear consensus that my students enjoy my clear examples, the live-coding during my lessons, and most surprisingly: my quirky sense of humour.


Twitter handle. For example (@handle-name):

@mathsppblog


Notable open source projects that you contribute to. Add URLs, one per line.

https://github.com/mathspp/mathspp


Sessions

04-08
11:00
25min
The paradox of itertools.tee
Rodrigo Girão Serrão

The module itertools provides 20 tools.
There's 19 iterables and then there's tee...

But what does tee do and why is it the only thing in the module itertools that's not an iterable?

In this talk you will understand what tee does and when to use it, but most importantly, you will understand the paradox behind tee...
See, the thing is that tee seems to go against the laws of iterators...

Python Day - Apr 8
Deimantas/Diamond (3rd building)
04-09
11:30
25min
And now for something completely different
Rodrigo Girão Serrão

In this talk we’ll go over two quintessential features of Python programming (generators and duck typing) and you’ll learn how to use them effectively.

We’ll also look at branchless conditionals and understand how this unusual idea can shape the way you think about coding.

In the end, we’ll put the three together to write a powerful Python idiom and conclude I have terrible taste!

Data Day - Apr 9
Krantas/Shore 213 (3rd building)