Overview of python

pyaplogo
Python development environment so far we have talked about lots of features of python so now we are going to move on to the environment require for python to install and use. So before we proceed further let's look at the versions of python so the stable version of python is 2.7.15 and 3.7.0 according to the wiki

Python 3.0 does not maintain backward compatibility with an older version of python so, in other words, code develop for python 2.x may not work with Python 3.x and vice versa because much code and so many libraries are already developed for python 2 x most of the programmers in scientific community still use 2.x and latest versions of 3.x as the development is increasing day-by-day for python and it’s a good thing for python community.

As a developer you would want an integrated development environment or (IDE) you do not want to program in a native mode so let’s see some highly rated IDE for python.

Top IDE for python

Sublime Text


First install Python IDE from python official website then after installing it, if you need to check the version of python from a native mode command prompt(cmd) just create hello-world file from python interpreter or you can also create a text file then change the extension of that file from *.txt to *.py and copy the file path from that file and run into cmd or python shell.

Example Run Python -V in cmd to know the version of python Run Python -h to open help Create your first program by creating a text file or using python shell print(“Hello world”) and save your file then change the extension of that file from *.txt to *.py Or You can import the sys module
import sys
sys.stdout.write("hello from Python %s/n" % (sys.version,))

This will show you versions of python and hello from python this is the two ways you can do this one again from the command prompt and Python IDE so hopefully that makes sense to you. It's a great way to learn how to run python as you can see it’s super easy and you will hopefully get a lot of it.
Next Post Previous Post