python version latest code example

Example 1: command to upgrade python version

python -m pip install pip
#or
python -m pip install –upgrade pip
python -m pip install --upgrade pip

Example 2: python version

python ––version

Example 3: 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 4: latest version of python

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

% brew install python3

Example 5: idle python download

# Python downloads IDLE on default when it's installed. 
# So you already should have it, but in case you don't, then:
# Reinstall python and make sure you tick the box that says "Install IDLE" or something like that