I installed Python on my computer.
When I type python
in the command prompt I get the following message:
'python' is not recognized as an internal or external command,
operable program or batch file.
But when I type py
it seems to be working and I get the following:
Python 3.7.0 (v3.7.0, Jun 27 2018, 04:59:51) [MSC v.1914 64
bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license"
for more information.
Why is this happening?
FYI: I checked the path variable in environmental variables and I don't see any path to python installation.
But then how is visual code able to find the path to python.exe
and able to run python code?
I am confused.