What does % do to strings in Python?

documentation, operators, python, string

Solution

It's the string formatting operator. Read up on string formatting in Python.

format % values

Creates a string where `format` specifies a format and `values` are the values to be filled in.

Problem

I have failed to find documentation for the operator % as it is used on strings in Python. What does this operator do when it is used with a string on the left hand side?

Original source