The % operator is mostly to find the modulus of two integers. ... The same operator is also used for the "old" style of string formatting, so a % b can return a string if a is a format string and b is a value (or tuple of values) which can be inserted into a . The // operator does Python's version of integer