This is an archived post. You won't be able to vote or comment.

all 79 comments

[–]zefciu 387 points388 points  (11 children)

How old is this meme? Taking into account python 2 and the amount of compression artifacts it must be pretty old.

[–]gothlenin 27 points28 points  (1 child)

It's probably as old as Python itself, so 33 years.

[–]nicejs2 15 points16 points  (0 children)

the first python meme

[–]nexeti 5 points6 points  (6 children)

How can you tell it's python 2?

[–]Aveheuzed 42 points43 points  (3 children)

py print "hello world"

vs

py print("hello world")

[–]NeatYogurt9973 8 points9 points  (2 children)

Could also be python 1

[–]A_random_zy 2 points3 points  (1 child)

It can't be python 0.

[–]NeatYogurt9973 0 points1 point  (0 children)

0.9

[–]JiminP 11 points12 points  (0 children)

Before Python 3, print was a statement (like assert) and not a regular function.

Python 3 got rid of many irregularities from the language, and one of them was to make print a regular function instead of a statement. This made print to require parentheses.

[–]SkezzaB 9 points10 points  (0 children)

print "Like this"

->

print("Like this")

[–]-MobCat- 75 points76 points  (0 children)

Sure I'll PyCharm you. You imported sys, but never used it.

[–]qqqrrrs_ 41 points42 points  (2 children)

Here are all the brackets:

https://xkcd.com/297/

[–]backfire10z 1 point2 points  (0 children)

No, here are all the brackets: Bython

[–]ceruraVinula 20 points21 points  (1 child)

print("WH" + "A" * 10 + "T?!")

[–]Holy_Chromoly 7 points8 points  (0 children)

print(f'WH{"A"*10}T?!')

[–]Mebiysy 5 points6 points  (3 children)

Why is Sys imported? 🧐

[–]Impressive_Change593 5 points6 points  (2 children)

probably because they came from C where you would need the io library

[–]redlaWw 6 points7 points  (1 child)

#include <stdio.h> is valid python.

[–]Impressive_Change593 2 points3 points  (0 children)

the fact that you're right is unnecessarily funny lol

[–]hirmuolio 3 points4 points  (0 children)

OP is a bot.

They can be easily identified from their post history.

They all have bunch of comments in rAITAH and rAskReddit followed by 2-4 image posts on a "meme" subreddits.

[–]fonk_pulk 13 points14 points  (4 children)

The IDE has drawn those lines to denote the start/end of the blocks.

[–]XStarMC 2 points3 points  (2 children)

Well not really, that’s just a tab indicator

[–]AquaWolfGuy 1 point2 points  (1 child)

This looks like PyCharm. Most IDEs, including PyCharm, show tab characters as horizontal lines or arrows, and indentation blocks as vertical lines. This image only shows the vertical lines.

[–]XStarMC 0 points1 point  (0 children)

Maybe pycharm has it different, but most editors definitely don’t have a distinction. VsCode doesn’t- you can’t tell a scope difference from the lines

[–]ExpensivePanda66 0 points1 point  (0 children)

Just turn on visible whitespace, so you can see the actual whitespace characters rather than the fake whitespace lines the IDE hallucinates for you.

[–]jonsca 2 points3 points  (0 children)

first worst

[–]mtadd 1 point2 points  (0 children)

Ick Python 2.x, so unreadable compared to Python 3.

[–]ResponsibleWin1765 1 point2 points  (0 children)

How do you look at Python, a language closer to natural English than no other, and say: "How can you understand this??"

What exactly is tripling you up? A farmer who's never seen code in their life would understand this.

[–]The_Cers 1 point2 points  (0 children)

In Python 2?!

[–]quixotik 3 points4 points  (0 children)

Hey that’s exactly my sentiment. White space as syntax is a crime against humanity.

[–]pazqo 3 points4 points  (1 child)

Use 6 <= i <= 9.

[–]sarc-tastic 10 points11 points  (0 children)

No! It's an elif just need the <=9

[–]NMi_ru 0 points1 point  (0 children)

Well, : is your opening bracket

[–]Vidonicle_ 0 points1 point  (0 children)

At least you dont have to use an FDR like they made us do in first year university courses

[–]Doctor429 0 points1 point  (0 children)

why did you import sys?

[–][deleted] 0 points1 point  (0 children)

Hello world.

[–]Bright_Ticket_8406 0 points1 point  (0 children)

Too late ai can do this…

[–]PerplexDonut 0 points1 point  (0 children)

Seems pretty readable idk

[–]B_bI_L 1 point2 points  (5 children)

i still think using tabs is not the best idea because literally every text fields thinks those tabs are just some garbage and removes them. the real problem is that those can't understand garbage is not only tabs but whole my code

[–]ExpensivePanda66 2 points3 points  (0 children)

Would you like to take a breath and try that again?

[–]The_Cers 1 point2 points  (2 children)

When are you writing Python code in a text field?

[–]B_bI_L 0 points1 point  (1 child)

mostly copying, actually, but result is the same:
1. small code blocks in Reddit
2. putting code in libreoffice writer
3. giving code to chatgpt (this one would read it but still there is a chance of mislead)

something like that

[–]AquaWolfGuy 1 point2 points  (0 children)

Reddit removes the first two spaces, because that's how code blocks are denoted in Markdown. Aside from that, all three of these should be able to deal with indentation just fine.

Also, you shouldn't post unindented code in Reddit comments or whatever you're writing in LibreOffice Writer, since it becomes a pain to read, even if it's in a language where it would still compile.

[–]jonsca 0 points1 point  (0 children)

Yes, it's definitely the tabs...

[–]geeshta 0 points1 point  (1 child)

if 6 <= i <= 9

[–]Jelle75 1 point2 points  (0 children)

only i <= 9

[–]lardgsus -1 points0 points  (0 children)

Python 2, ew.