Hi, I'm a beginner, and just want to display an image using Python. I have this code...
from PIL import Image
Image.open("pic.jpg").show()
which according to what I've read, should work. However, it just opens Windows Photo Gallery and says 'There are no photos or videos selected'.
I have ensured that the image file is named correctly and is within the same directory as the Python script.
Any help?