Why is the % character a "modulus" and not a "percent" in Python ?

·

1 min read

Why is the % (Percentage) character a "modulus" and not a "percent" in Python Programming Language ?

▪ Mostly that's just how the designers chose to use that symbol.

▪ In normal writing, we are correct to read it as a "percent."

▪ In programming, this calculation is typically done with simple division and the / operator.

▪ The modulus is a different operation that just happens to use the % symbol.