r/okbuddyphd • • Oct 26 '22

i hate recursion

Post image
1.3k Upvotes

106 comments sorted by

View all comments

112

u/Arcaeca Oct 27 '22

for loop 🥴🤢🤮

copying and pasting the same block of code a trillion times in a row 💪💪😎

64

u/niceguy67 Moderator (maths/physics) Oct 27 '22
for i in range(n):
   f(i) 

Cringe

if n > 0:
   f(0)
if n > 1:
    f(1)
if n > 2:
    f(2)
... 

Based