want to upgrade from python 3.5.2 to python3.8 on my mac code example
Example: mac upgrade python to 3.8
brew install python3
brew update && brew upgrade python
alias python=/usr/local/bin/python3
brew install python3
brew update && brew upgrade python
alias python=/usr/local/bin/python3