Python not working after windows 10 update

Python 3.11.5 was working fine until Windows 10 update.
After the update the below mentioned error message appears.
“The code execution cannot proceed because python311.dll was not found. Reinstalling the program may fix the problem”.
I have reinstalled it multiple times, but the error still exists.

I have not been able to install libraries on Windows 10 so I’m not sure if this is related or not…