Finally, we come to the most important part of a format specifier and the only requirement (flag, width, and precision are optional); conversion characters.
Conversion-characters do the actual formatting and determine how the argument is to be formatted. While the list is long, for the scope of this course, we will look at some common ones.
Character Use
s formats strings
d formats decimal integers
f formats floating-point numbers
t formats date/time values
Now that we have finally gone over the syntax, let’s combine what we have learned and look at some examples.
At this point, if you are still not clear how to use the f String interpolator, the coming examples will go in great detail to clarify any confusion.