This video demonstrates how to generate pixel art by using nested loops to iterate through grid coordinates and conditional statements to assign colors based on specific x and y position conditions, showing how to recreate a mushroom image from Super Mario Brothers by defining color rules for different pixel regions.
Deep Dive
Prerequisite Knowledge
- No data available.
Where to go next
- No data available.
Deep Dive
Pydle
Added:Welcome to Pytle Day 145.
Pytle is a daily puzzle you need to solve by writing Python code.
Um just first before we start um something strange happened the last 30 hours.
Uh can look at the graph of invocations uh of Pytle.
So, it's gone from very little to 17,000 per hour.
So, I'm very grateful those playing Pytle. Really interested to know where you found out about Pytle.
Okay.
So, today's Pytle is a mushroom from Super Mario Brothers.
So, have a go at solving that.
Um if you need the Pytle or you just want some hints how to solve Pytle then um I will now solve yesterday's Pytle which was a scorpion.
Um so, stick around.
Okay. So, um there's not any symmetry in this uh puzzle, so we're just going to keep our two loops uh for X in range and for Y in range um looping over the 25 pixels.
Okay. So, let's tackle the yellows first.
So, the condition for yellow is if uh Y less than two cuz remember we're counting from the top. So, 0 1, so Y less than two and X we just can do X in 2, 4.
>> Okay.
Is it the um the yellow bits? Um okay, so let's tackle the brown snake.
So, elif and browns we going to just have a condition for Y which is what one less than Y less than four and X equals three.
Cuz it's just on that vertical there.
So, X is constant and Y is just in that range.
Okay, let's move to that.
That's the browns.
Okay, and now for the orange.
We need an elif cuz we're going to leave the rest of the pixels black.
Um so, I've got X equals zero.
Um now we need to limit the the Y.
Um so, we can either say X is zero and Y not in 0,4 or Y equals four and X in 1,2 Basically, there's various ways of doing that. Um That's one way to do it, and it's quite compact.
Okay.
That's also Poodle.
Yesterday, if you didn't play yesterday's Poodle, have a go.
Um and then uh do play today's Poodle.
And I'll see you again tomorrow uh for the solution. And thank you for everyone who's been playing. Keep on playing. Thank you.
Related Videos

TOP 15 Data compression Interview Questions and Answers 2019 Part-2 | Data compression | Wisdom jobs
wisdomjobs
281 views•2019-06-28

CTS 158: 802.11w Management Frame Protection
ClearToSend
4K views•2019-02-04

NDSS 2019 Send Hardest Problems My Way: Probabilistic Path Prioritization for Hybrid Fuzzing
NDSSSymposium
496 views•2019-04-02

How realistic is Cities: Skylines?
CityBeautiful
159K views•2019-02-14

GUIs & TUIs: Choosing a User Interface for Your Python Project | Real Python Podcast
realpython
2K views•2025-04-04

The OSI Model - Explained by Example
hnasr
225K views•2019-05-12

Cloud Computing - Introduction
elithecomputerguy
98K views•2019-10-07

From Traveler's Dilemma to Dynamic Routing | Demystifying Networking
IITBombayJuly
5K views•2019-08-04
Trending

Gremlin Arrives… While Dorothy May Takes Another Step Forward
The-moons
10K views•2026-07-23

Playstation NO DISC/NO BUY Fight Is Over...
DavidJaffeGames
4K views•2026-07-23

Americans Confused in Australia for 17 Minutes Straight
IWrocker
17K views•2026-07-23

FURIOUS Raskin CORNERS DOJ over Trump DARK PAST!!!!
MeidasTouch
237K views•2026-07-23