I got stuck practising with images in Python 3:
import numpy as np
from matplotlib.image import imread
photo_data = imread('c:\jpeg.jpg')
photo_data[0,0,1] = 0
I get this error
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-40-f19579124b68> in <module>()
1 photo = photo_data
2 print(type(photo))
----> 3 photo[0,0,1] = 0
4 plt.imshow(photo_data)
ValueError: assignment destination is read-only
I'm following an online course where this code seems working, can you tell me what I'm getting wrong?