Python % operator for String Interpolation
You may be surprised to know that there are many ways to format strings in Python. Before Python 3.6, there were two basic tools for interpolating (mixing) values, variables, and expressions within string literals:
1 — The string interpolation operator (%) (the math’s modulo operator)
2 — The string.format() method