Python supports a wide range of arithmetic operators that you can use when working with numbers in your code. One of these operators is the modulo operator (%), which returns the remainder of dividing two numbers. Modular operations are useful to check if a number is even or odd, simplifying cycling through data, and doing non-decimal based units conversion.
Python’s % operator’s been around for a long time. The code shown you has all been tested using Python 3.9, but you should be able to use it in pretty much any version of Python.
Click here to learn more: https://realpython.com/courses/python...
Nesta página do site você pode assistir ao vídeo on-line Using the Python Modulo % Operator duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Real Python 11 Fevereiro 2021, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 22,064 vezes e gostou 278 espectadores. Boa visualização!