..'python' is not recognized as an internal or external command, operable program or batch file

Whenever I try to run any python code using script, it gives me this error: ‘python’ is not recognized as an internal or external command, operable program or batch file.

I have no idea what to do.
please help

Windows 10
python 3.9