Python String Formatting

The string format() method allows you to format selected parts of a string into a nicer output in Python.

Code :