Introduction
String formatting helps you create text with numbers or words arranged neatly. It makes your output clear and easy to read.
When you want to show numbers with a fixed number of decimal places.
When you need to combine text and numbers in one message.
When you want to create a formatted report or label.
When you want to prepare data for saving or printing in a specific style.