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

Опубликовано: 03 Май 2026
на канале: Computing and ICT in a Nutshell
2,003
18

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:
https://www.advanced-ict.info/blog/mo...

If you are able to use modular arithmetic with confidence then you can approach tasks like this:
https://www.advanced-ict.info/program...
[solution: https://console.basthon.fr/?from=http...]