In Win 11, I copied code down from a website. When I tried to change it, I got the 'Read Only' error. The correction was to go into File Manager for the .py file I was trying to run and turn off the Read Only property.