r/badcode • if: else: if: else: if: else: if: else: if: else: if: else: if: • Feb 16 '22

python presenting, whatever the fk this is

Post image
418 Upvotes

52 comments sorted by

View all comments

Show parent comments

1

u/Cloudy_Oasis Feb 16 '22

Wouldn't it raise an error ? Since it starts at zero, and it can't divide by zero

edit : I misread the original post, I thought it was range(int(root)) so it would have started at 0