concept placeholder in category python

This is an excerpt from Manning's book Tiny Python Projects: Learn coding and testing with puzzles and games.
In this chapter, we’ll write a program called mad.py that will read a file given as a positional argument and find all the placeholders in angle brackets, like
<verb>
or<adjective>
. For each placeholder, we’ll prompt the user for the part of speech being requested, like “Give me a verb” and “Give me an adjective.” (Notice that you’ll need to use the correct article, just as in chapter 2.) Each value from the user will then replace the placeholder in the text, so if the user says “drive” for the verb, then<verb>
in the text will be replaced withdrive
. When all the placeholders have been replaced with inputs from the user, we’ll print out the new text.
>>> for placeholder, name in matches: ... print(f'Give me {name}') ... Give me adjective Give me noun Give me preposition Give me noun