Rodrigo Girão Serrão 🐍🚀
banner
mathspp.com
Rodrigo Girão Serrão 🐍🚀
@mathspp.com
I'll help you take your Python skills to the next level!

Python deep dive every Monday 🐍🚀 -> https://mathspp.com/insider

Short daily drop of Python knowledge 🐍💧 -> https://mathspp.com/drops
I had an AMAZING idea for what would easily be my best blog article, ever.

But I might be a bit out of touch 😅

Help me figure this out:

Have you ever heard of the “P vs NP” problem?

Ok, and if you have, what about “NP-completeness”?

Have you heard of this term? Could you explain it back to me?
December 20, 2025 at 12:54 PM
Do you folks know any meetups that would be happy to host a remote talk?

I have a couple of new talk ideas that I'd love to get some feedback on!
December 19, 2025 at 7:02 PM
Reposted by Rodrigo Girão Serrão 🐍🚀
If you only remember to do one thing today, it should be proposing a talk for #PyConUS 2026. CFP closes today!

us.pycon.org/2026/speakin...
Proposal Guidelines
PyCon US 2026
us.pycon.org
December 19, 2025 at 5:44 PM
What if... I started streaming regularly (weekly?) on a quest to CONQUER Leetcode?

Start from #0001, and solve all Leetcode problems?

Is that something watchable or am I just being ridiculous?
December 15, 2025 at 3:02 PM
Advent of Code is over (only 12 days this year) and I'm kind of sad I don't have a reason to stream today.

I liked streaming!

What if I wanted to stream more?

What should I stream about?
December 13, 2025 at 4:03 PM
Reposted by Rodrigo Girão Serrão 🐍🚀
December 13, 2025 at 2:13 PM
It's so ANNOYING to break out of nested loops.

Auxiliary variables, conditional statements, non-linear paths through your code...

It's a mess!

But if you extract the looping logic to a generator, you get:

- less indentation ✨
- a flat loop you can easily break out of ✨
December 11, 2025 at 1:51 PM
📢 Public service announcement:

Don't buy from me:

Don't buy my books.

Don't sign-up for my courses.

Don't attend my cohorts.

Apparently, I'm a scammer. 🤷

At least, that's my interpretation of this comment from a subscriber...

Should I delete them from my mailing list?
December 10, 2025 at 1:33 PM
After yesterday's flop, today I'm live streaming to solve day 10 of Advent of Code and hopefully go back to day 9 part 2 to make progress on finishing it!
December 10, 2025 at 1:23 PM
A visualisation of day 7 from Advent of Code.

Worked on this during yesterday's stream, although the colouring was added off stream.
December 8, 2025 at 4:22 PM
7 days of Advent of Code diagrams from my streams and analysis sessions!
December 7, 2025 at 7:06 PM
Today was a fun Advent of Code problem!

Join me at 5pm UTC (in ~2h40min) as I livestream my solution and a visualisation for today's part 2.

We'll be implementing a very efficient Python solution with sets and counters!

Here's the link for later:

youtube.com/@mathsppblog...
Solving Advent of Code, day 7, in Python – Algorithm Mastery Bootcamp
In this live stream I'll be solving Advent of Code day 7 in Python. Problem link: https://adventofcode.com/2025/day/7. Hey, I'm Rodrigo from sunny Portugal 🇵🇹, and my job is to make you a better Pyth...
youtube.com
December 7, 2025 at 2:19 PM
Advent of Code doesn't rest during the weekend and neither do I!*

In ~3 hours (@ 5pm UTC) I will be livestreaming my Python solution for day 6.

We'll also go back to day 5 to implement the MOST efficient ⚡️ solution for day 5, since my solution from yesterday was kinda inefficient. 🐌
Solving Advent of Code, day 6, in Python – Algorithm Mastery Bootcamp
In this live stream I'll be solving Advent of Code day 6 in Python. Problem link: https://adventofcode.com/2025/day/6. Hey, I'm Rodrigo from sunny Portugal 🇵🇹, and my job is to make you a better Pyth...
youtube.com
December 6, 2025 at 1:53 PM
I need ideas.

Later today (in ~2 hours) I'm going to be livestreaming while I solve Advent of Code day 5.

I want to livestream for ~1h.

But the problem won't be long enough.

What should I do after, along a similar theme?
December 5, 2025 at 2:58 PM
🔴 I'm going live in 30 minutes to solve Advent of Code day 4.

I'm sure we'll have some time left, so we'll also work on a visualisation for day 4.

Here's the link: youtube.com/@mathsppblog...

See you in 30!
Solving Advent of Code, day 4, in Python – Algorithm Mastery Bootcamp
In this live stream I'll be solving Advent of Code day 4 in Python. Problem link: https://adventofcode.com/2025/day/4. Hey, I'm Rodrigo from sunny Portugal 🇵🇹, and my job is to make you a better Pyth...
youtube.com
December 4, 2025 at 4:29 PM
Anatomy of a list comprehension.

Understand this and you'll never need to look up list comprehensions again.
December 4, 2025 at 12:14 PM
I'm going live to solve Advent of Code, day 2, in 10 minutes!

And we'll also be going back to the visualisation for yesterday's problem...

The link is in my profile :)
December 2, 2025 at 4:51 PM
Here's a lie developers tell themselves:

“Recursion is useless”

That's a coping mechanism because you're afraid of recursion...

But you shouldn't be afraid!
Recursion is actually nice ✨

And it's a very natural way to express certain algorithms...

Let me show you an example.
December 2, 2025 at 4:12 PM
This random tourist really took me by surprise:

So I arrived at the train station, saw a tourist couple trying to buy tickets, and offered to help.

They sorted the tickets out by themselves but wanted to double-check the platform they should be in.

I tell them the right one…
December 2, 2025 at 11:40 AM
Oh by the way, you can still get ALL my 8 Python books PLUS all future updates PLUS all future books for $37.5 because of the Black Friday craze.

That's $166 worth of books for a pretty penny.

Here's the link: 📚 mathspp.gumroad.com/l/all-books-...

Enjoy the books :)
“All books” bundle 🚀
This bundle gives you access to $153 worth of ebooks at more than 50% off:Pydon'ts ($29)The little book of itertools ($19)The little book of pandas & matplotlib ($19)The little book of pygame ($19...
mathspp.gumroad.com
December 1, 2025 at 8:04 PM
I may or may not have been muted for the first 2 minutes of the stream 🤣
My first Advent of Code live stream will start in ~1h!

See you there?

Advent of Code 🧑‍💻 live-stream: www.youtube.com/@mathsppblog...
December 1, 2025 at 7:28 PM
My first Advent of Code live stream will start in ~1h!

See you there?

Advent of Code 🧑‍💻 live-stream: www.youtube.com/@mathsppblog...
December 1, 2025 at 3:58 PM
With an article from yours truly 🤩
🐍📩 Pycoders Weekly (Issue 710) — FastAPI, Floodfill, 20 Years of Django, and More

buff.ly/16faoYR
November 27, 2025 at 10:37 PM
In today's session of the Algorithm Mastery Bootcamp we talked about linear recurrence relations and how to represent them as matrices.

The next step?

Using fast exponentiation with repeated squaring to compute terms at LIGHTNING FAST speeds ⚡️🤓
November 26, 2025 at 7:16 PM
This December I'll be publicly live-streaming myself solving Advent of Code (in Python) on YouTube, but I never streamed on YouTube.

Does anyone have any tips? :D

Both general streaming tips and specific YT-related ones?
November 25, 2025 at 2:42 PM