images subplot python

_, axs = plt.subplots(n_row, n_col, figsize=(12, 12))
axs = axs.flatten()
for img, ax in zip(imgs, axs):

Here is what the above code is Doing:
1. We’re creating a figure with n_row * n_col subplots.
2. We’re flattening the list of axes so that we can iterate over it.
3. We’re iterating over the images and axes and plotting each image on the corresponding axis.
4. We’re showing the plot.