Python Intermediate #9: Additional Text Formatting in Python

In Python Intermediate #8, I showed a method for text formatting.  In this post, I show an alternative method.

The first example in this post takes the values of the variables, "name" and "grade" and uses them in a simple sentence.

The coding is shown below.



The result of this code is below.




The next example uses the same method, however, the information is extracted from a dictionary named, "personal_info".  The coding is shown below.




The result of this code is below.



Comments