Ram Rachum Ram Rachum - 7 days ago 5
Python Question

What does % do to strings in Python?

I have failed to find documentation for the operator % as it is used on strings in Python. Does someone know where that documentation is?

Answer

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.