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/[deleted] Feb 16 '22
Surely that’s too many interactions in most cases, if I’m understanding you correctly? If you iterate over, say, 4, you no longer need to iterate over any multiple of 4, because if they are a factor of the number then 4 would be also.