The Grid geometry manager is easy to use both in simple and advanced layouts, and it is also a powerful mechanism to combine with a list of widgets.
We will take a look at how we can reduce the number of lines and call the geometry manager methods with just a few lines, thanks to list comprehensions and the zip and enumerate built-in functions.