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

  1. Really much more informative about the Python is really much more informative. The Python is an interpreted, interactive and high level programming language similar to PERL....Wish To learn Python from the basics to the advanced level, enroll you @ Software Training institute in velachery
    to learn Python Training in Velachery

    ReplyDelete

Post a Comment

Table Rock Dam

Table Rock Dam