Run the following command to check the path to your Python 3 installation:
$ which python3
This will show the full path of your Python 3 binary. On most systems, it should be /usr/bin/python3 or /opt/homebrew/bin/python3
cat ~/.zshrc
add line if not available : alias python=/correct-path-to-python3
example : alias python=/usr/bin/python3
source ~/.zshrc or restart terminal
python --version