I had my path setup properly still it didn't seem to work, later I found that I had
a partial entry of python files in the C:\Users\User\AppData\Local\Microsoft\WindowsApps and my WindowsApps were in the path to, so when I ran python in it did not work.
To check where your python has been installed and has an entry,
Go to Anaconda Prompt and run
where python
it will return you the list of location, add the appropriate one