What does percentage do in python | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What does percentage do in python

18th Jan 2022, 8:45 AM
Rhys Law
Rhys Law - avatar
3 Answers
+ 4
The percentage symbol(%) is known as modulo operator in python. It returns the reminder in a division. 10%4 = (2*4+2)%4 = 2 20%6 = (3*6+2)%6 = 2 ...
18th Jan 2022, 8:53 AM
Simba
Simba - avatar
+ 3
It's called modulo, this operator returns the remainder in a division.
18th Jan 2022, 8:53 AM
Lakshya G
Lakshya G - avatar
+ 1
Thanks for your help
18th Jan 2022, 8:58 AM
Rhys Law
Rhys Law - avatar