0
What is %( modules) use for in python?
I don't understand the function...
1 Answer
+ 10
It is modulo operator, it is used to get the remaining number after the number to the left of the operator is divided by the number to the right of the operator, for example;
x = 10 % 3
x here is the remainder of 10 divided by 3, which yields 1.
Hth, cmiiw