You posted a file. For people reading this by email, we see this:
which is obviously useless. For visually impaired and blind people using
screen readers, even if the picture was attached, it would still be
difficult or impossible for them. And if there is anything in the
picture that we need to run, we would have to re-type it, possibly
introducing errors ourselves.
So please, if you want help, make it easy for people to help you by
copying and pasting the text of the error, not a screen shot or photo.
We don’t edit Python code with Photoshop
It might also help if you read this: