Back
The % symbol represents the modulus operator in Python. An operation like x % y estimates the remainder of x ÷ y.
a = 10 b = 20b % a
a = 10
b = 20
b % a
The output will be 0.
31k questions
32.8k answers
501 comments
693 users