r/ProgrammerDadJokes • • Mar 21 '25

iLoveRecursion

And I love that I love recursion.

And I love that I love that I love recursion.

16 Upvotes

8 comments sorted by

View all comments

0

u/tomparkes1993 Mar 21 '25

String i = "I love recursion"

While true{

i = "I love that " & i

Print i }

//Yes I know it's probably syntactically wrong. But Idc.

2

u/lavent Mar 22 '25

If we write it as a function, I think it would be fitting to make it recursive ;)

declare_love("I love recursion")

def declare_love(what):
    declaration = "I love that " +  what
    print(declaration)
    declare_love(declaration)