python for mac code example

Example 1: mac os install python 3

brew install python3

Example 2: which python mac

$ brew update && brew upgrade python

Example 3: install python in mac

brew install python3
brew install python2

Example 4: download python

Step 1: Download Python newest version from

 https://www.python.org/downloads/

Step 2:Install Python
Step 3:Download Pycharm Community free version
Step 4:Install and open Pycharm
Step 5:Write print("Hello New World")
  //Hurray you are about to start python

Example 5: latest version of python

# For macs... 
#  Apparently you don't want to upgrade 2.* just install 3.*

% brew install python3

Example 6: install python 3 on mac

$ brew install python3