Ram Rachum Ram Rachum - 9 months ago 59
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 Source

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.