brew install python updaraded versoion already installed code example
Example: terminal python version
# in python
$ python --version
# in python3
$ python3 --version
# in python
$ python --version
# in python3
$ python3 --version