Mac Terminal doesn't recognize the command "Python"

I confess I’m a newbie. Thanks in advance for patience.

I installed Python. Supposedly I should be able to use the command “python --version” in Terminal. Terminal doesn’t recognize “python” as a command (I’m not using quotes in terminal obviously)

Try python3. To run the python 3.9 that ships with macOS.

Just python was the obsolete python 2 that is no longer on macOS.

You should consider installing a newer python from python.org where 3.11 is the latest.

Thank you, python3 worked.