top of page

Python introduction and installation

Python is one of the most powerful programming languages in the market. The syntax of python is very simple and easy to remember. Certain features like sorting, min, max comes inbuilt with the language and you don't need to type them so it decreases the time required to solve a problem. But the program written in python takes more time to execute than on C, C++ and JAVA, so if you are planning on using python in competitive programming where the test cases has to be run in certain time limit, keep this in mind but you can always write efficient algorithms to overcome this problem. Now lets install python:

Go to python.org or just go to google and type python and open the very first, you will see this window:

Now click on downloads and choose the version 3.6.1, by the time you may be reading this, the version may have changed but in general this series of tutorials will get you through version python 3.x. You can find the older version below, for this series I am using python 3.4.3 but it is always better you have the latest version.

After you click on Download Python 3.6.3, you downloading will begin automatically.

In case you are downloading older version a new window will be opened, in that window go down and see your OS and type(Windows x86-64 MSI installer for 64-bit OS and Windows x86 MSI installer for 32 bit OS) and then download.

After downloading has finished just open the file and install python, the installation is simple.

Now after you have installed python just go to start and type python and click on IDLE(Python - 3.4 GUI - 64 bit), your version might be different from my one.

After this a new window will be opened as Python 3.4.3 Shell now go to File -> New file or press Ctrl + N to create a new python file

Now you are ready to make your first program, type print("Hello world!) and save it with .py extension. After saving it click on Run -> Run module or press F5 and you can see the output on the shell.

That was the first tutorial on python, just the basic introduction on installing python and running python programs, see you in the next one!


bottom of page