0

What is %( modules) use for in python?

I don't understand the function...

21st Jan 2018, 2:08 PM
Ayman Khan
Ayman Khan - avatar
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
21st Jan 2018, 3:46 PM
Ipang