check python3 version mac code example
Example 1: terminal python version
# in python
$ python --version
# in python3
$ python3 --version
Example 2: which python mac
$ brew update && brew upgrade python
# in python
$ python --version
# in python3
$ python3 --version
$ brew update && brew upgrade python