There's an argument going on in r/learnpython about -6%8, which could be interesting (the discussion hinges on counting down from 0 toward -6, in which case -6 % 8 = -6, or counting up from -inf, in which case -6 % 8 = 2; Python does the latter) if one person weren't just repeatedly stamping his feet and yelling that it SHOULD be the way he expects and Python should adapt to suit him.

Follow

@noelle does this person know about math.remainder() because that sounds like what they want

Sign in to participate in the conversation
📟🐱 GlitchCat

A small, community‐oriented Mastodon‐compatible Fediverse (GlitchSoc) instance managed as a joint venture between the cat and KIBI families.