In Python, the %-formatting uses %s, %d and %f as placeholders for strings, numeric values and floating point numbers respectively. We can specify how many decimal places to represent with %.nf where n stands for the number of decimal places. Hence, for 2 decimal places, we use %.2f