How is this funny? 8 Upvotes at current writing???
Because this example isn’t really programming, it’s just calling an existing library. Which is the big joke about Python.
It’s kind of funny because it looks like it is nonsense dreamt up by a non-programmer. But it actually works.
It’s basically import antigravity
I thought it was poking fun at the tutorial saying instead of learning to code, import a library from someone who knows how to code.
My best guess is it’s a play at the usual “all you do in python is import libraries without knowing how they work lololol” dig but yeah, I don’t find it particularly funny either
This is exactly why we love Python (and other languages with rich package ecosystem, even when only on their niche usage cases). You can build upon other people’s knowledge and effort to do cool things efficiently and effectively!
Hahaha now code-golf it. One line FTW!
remove(Image.open(‘cl.jpeg’)).save(‘output.png’)
If I find this in production I’m whipping your ballsack till you change it back.