python get apple version 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