How to print like printf in Python?
How to print like printf in Python3?
The % operator can also be used for string formatting. It interprets the left argument much like a printf() -style format string to be applied to the right argument. In Python, there is no printf() function but the functionality of the ancient printf is contained in Python.