Python 3 - Using Modular Arithmetic (e.g. for Cycling Values)

preview_player
Показать описание
A look at how to use modular arithmetic in Python, e.g. to cycle through values or to get them to "wrap around", to see whether one number is a multiple of another, etc.

The examples in the video are also included in this article:

If you are able to use modular arithmetic with confidence then you can approach tasks like this:
Рекомендации по теме
visit shbcf.ru