[Python] Python Modulo operator bug [duplicate]

Discussão em 'Python' iniciado por Stack, Dezembro 1, 2024.

  1. Stack

    Stack Membro Participativo

    I'm using Python version 3.9.12. I asked Python what the remainder of -7 divided by 3 is (-7%3), and it answered 2! It should be -1, right? Am I getting it wrong? What's going on?

    Continue reading...

Compartilhe esta Página