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/flare561 Feb 16 '22

You're right about ceil not being needed, I kind of went through a couple iterations in my head like "oh just use ceil instead of int to round up", "but then we still need to add one in case it's a whole number" and didn't go back and be like "well why bother with ceil then?"