I was reading some stuff in scikit learn's docs, and they used a '%' oddly, so I looked it up. Apparently:

If the first argument is a string, it formats it using the second argument. This is a bit involved, so I will refer to theĀ documentation, but just as an example:

>>> "foo %d bar" % 5
'foo 5 bar'

That's the absolute worst, please never use this.