imshow grayscale

plt.imshow(im, cmap='gray')

Here is what the above code is Doing:
1. We’re loading the image into a numpy array.
2. We’re using matplotlib to display the image.
3. We’re using the imshow function to display the image.
4. We’re using the cmap argument to specify that we want to use a grayscale colormap.

The imshow function is a very powerful function that allows you to display images in a wide variety of ways.

If you want to learn more about it, I recommend checking out the documentation: