This video demonstrates how to create pixel art by writing Python code that uses conditional statements to color specific pixels based on their x and y coordinates, showing a systematic approach to solving the Spider-Man puzzle by analyzing symmetry, counting pixel frequencies, and strategically assigning colors to different coordinate regions.
Deep Dive
Prerequisite Knowledge
- No data available.
Where to go next
- No data available.
Deep Dive
Pydle
Added:Welcome to pitle day 148. Pitle is a daily puzzle you need to solve by writing Python code. Today's title is Spider-Man.
Um so have a look um how that compares to an image of Spider-Man. Uh let me know in the comments what you think.
Okay. So um as usual I will now solve yesterday's paddle to give you just some hints how to solve paddle. So if you're new to pile you just want uh a tutorial how to solve paddle then stick around as I will now solve yesterday's paddle which was Steve from Minecraft.
Okay. [clears throat] So, um, Steve is symmetrical around the y- axis.
So, we're going to use cartisian coordinates x. It's going to go from minus2 to three. And that is um is exclusive. So, it's going to go minus2 to + two. But y um we're going just going to stick with pal coordinates.
Okay. the first pixels we're going to tackle. So, a good strategy is normally to leave the um the color with the most pixels till last for like the final else statement. Um it works in quite a few situations.
Now, it's probably pretty even between orange and brown. probably have five 6 7 8 9 10 11 12. So yeah, brown is definitely more than orange. So let's go for the oranges.
Um so the first uh easy if statements would be the two on the on the verticals. So that would be if absolute value of x um equ= uh 2 and y greater than one. Let's just slowly pull it up.
Let's run that.
And I make this mistake often. So we need to convert back to pal coordinates.
Um okay. So that is correct for that.
And then the top part is going to brow.
um say all y = 1 and absolute value of x is less than 2.
Okay, so that part and then we've got the singular single pixel also need to cover. So or um so x is zero there. So x = y is 2.
Um so say x = y - 2 = 0. That's just a compact way of writing that in Python.
Okay. [snorts and clears throat] So got the orange pixel sorted. Now we're going to do the blues and the red together.
Alif get the blues um absolute value of value of x equals um y is 2.
So and x = absolute value of x = 1. So we need to say = y - 1 = 1.
Let's do that start with slowly build it up. Let's make that blue.
Okay, we've got the eyes.
Uh, and then we're going to say or x equals. So, x is zero there. Y is 3.
Um, 0 1 2 3 x = y - 3 = z. Okay, I'm going to color that one blue.
Um, we did no need to do something special there. So, blue if y = 2, else red. Okay, that should cover that.
Okay, now it's got it's got black hair and a black beard. So, we need to do all the remaining pixels.
And let's just copy that statement over there.
Okay. And that needs to be brown.
Okay. So, let's run that.
Okay. And that solves the title. And you get a nice kind of emoji um sequence you can paste in any social media you want. Uh, you can also see the character count. So, 198 out of 250.
That's quite a lot, but it's quite a complicated one. Okay, hopefully you had fun solving uh this pile. So, have a go yourself if you're new to ple and want some practice.
But do go and solve today's pitle, which is Spider-Man. I'll see you again tomorrow.
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

WOW! Judge TURNS THE TABLES on Trump in His OWN $10B LAWSUIT!!!
MeidasTouch
197K views•2026-07-23

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

Steam and Xbox Just Dropped The Hammer On PlayStation
OhNoItsAlexx
9K views•2026-07-23

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