'I cannot run python on vscode because my computer believes that my .py file is untrusted

Previously I had python running just fine in VSCode but recently something has gone wrong and I'm not sure how to resolve it.

When I open a .py file (downloaded from an email) in VSCode I get a message saying that this source is not trusted. I then followed through the suggestions and made the file trusted and I get a box saying that all extensions are enabled. However, when I try and run it, the box is still blurred out

blurred out run button

This is the error I get when I try and run the whole file, not just the cell.

enter image description here

Does someone know how to get this up and running first? Thanks



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source