How to Use Interpolation

Using interpolation with configparser in python

We'll cover the following

The configparser module also allows interpolation, which means you can use some options to build another option. We actually do this with the font_info option in that its value is based on the font and font_size options. We can change an interpolated value using a Python dictionary. Let’s take a moment to demonstrate both of these facts.

Get hands-on with 1200+ tech skills courses.