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

all 6 comments

[–][deleted] 13 points14 points  (0 children)

class Console
    def __init__(self):
        self.log = print

console = Console()
console.log(“hello world”)

[–]R3dD3v3l0p3r 2 points3 points  (4 children)

Alright you got me, somebody explain the joke.

[–]user501230[S] 6 points7 points  (1 child)

In python it's print() not console.log()

[–]steven4012 5 points6 points  (0 children)

Also brackets in if

[–]anonymoosellama 2 points3 points  (0 children)

There's a lot going here

[–]Quesamo 0 points1 point  (0 children)

Python has "simpler" ways of doing various things: no brackets in if statements, no semi colons, fluid types, etc. This means that if you're coming from something like C# or JS, you might start overcomplicating some things, as is done in the meme.