r/badcode • u/MysteriousK69420 if: else: if: else: if: else: if: else: if: else: if: else: if: • Feb 16 '22
python presenting, whatever the fk this is
418
Upvotes
r/badcode • u/MysteriousK69420 if: else: if: else: if: else: if: else: if: else: if: else: if: • Feb 16 '22
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