Running a Python Script. Just Hangs

I am getting a .NET Runtime error but I just installed the latest version of .NET (I think)

from Download .NET 7.0 SDK (v7.0.306) - Windows x64 Installer and then ran the exe

My colleague was having the same issue and reverted his version of python from 3.11 to 3.9 and it worked. So I think that may be the issue.

Thanks very much for your advice though