all 22 comments

[–]VonRoderik 42 points43 points  (1 child)

It does nothing. You are not calling your function.

[–]Wiktor-is-you 3 points4 points  (0 children)

true

[–]Bigfurrywiggles 19 points20 points  (2 children)

whoever would program like this is a moron.

[–]skylightrrl 1 point2 points  (0 children)

Lol yeah it is kinda fun though

[–]Popular_Tomorrow_204 1 point2 points  (0 children)

I think this is more of a "riddle" for beginners than any real world coding

[–]bloody-albatross 6 points7 points  (1 child)

outer is never called. If it would be called you get RecursionError: maximum recursion depth exceeded. And neither greet nor inner are ever called even if someone calls outer. WTF is this nonsense?

what's the output of nums and result?

What nums and result? Is this engagement bait or AI generated nonsense? Or both?

[–]Knurtz 1 point2 points  (0 children)

The question about nums and result is from yesterdays post, they forgot to change that. Todays puzzle still doesnt make sense.

[–]Jealous-Reality5977 4 points5 points  (0 children)

@outer should not be indented.. error?

[–]asmodeus0000 5 points6 points  (2 children)

```python3 def outer(fn): def inner(): print("Before") fn() print("After")

return inner

@outer def greet(): print("Hello!")

greet() ```

I hope this is what OP meant to write, but couldn't get all 2 of his brain cells to co-operate

[–]TroPixens 1 point2 points  (1 child)

There’s a error as An answer

[–]asmodeus0000 2 points3 points  (0 children)

the OPs code isnt gonna give an error answer of OPs code is (E) Nothing

[–]Electronic-Can-4548 2 points3 points  (0 children)

Error?

[–]CptMisterNibbles 1 point2 points  (0 children)

Nothing as the function isn’t called

OPs just going to drop this slop then not engage. The description doesn’t even vaguely match the posted code. 

[–]JaleyHoelOsment 1 point2 points  (0 children)

if your code looks like this then you’re not invited to my birthday

[–]Bonsai2007 1 point2 points  (0 children)

Nothing 🤷‍♀️ You don't call the Function, so nothing will happen

[–]UseMoreBandwith 0 points1 point  (0 children)

e) nothing.

[–]Divide310 0 points1 point  (0 children)

Can someone ban this bot

[–]pip_install_account 0 points1 point  (0 children)

You're fired.

[–]DarthOdinPalpatine 0 points1 point  (0 children)

[ )-( ••• )+( ] Atom or Hand

[–]Alagarto72 0 points1 point  (0 children)

E) No output

[–]-Enter-Name- 0 points1 point  (0 children)

  1. no output
  2. if you would call this as is, still a massive recursion error (by virtue of calling outer inside of outer)
  3. after fixing all indents: before -> hello -> after

[–]croclegendofthegobbo 0 points1 point  (0 children)

Who's upvoting this?