First of all let me tell you that if you are coming from C, C++ or Java programing you will find Python very easy as compared to them because it's syntax is very easy and there are many inbuilt function which you can use efficiently. And, the main reason why you should learn Python is that, you have huge opportunity in development such as Backend Web Development, Machine Learning and Artificial Intelligence, Game Development, Data Analysis, etc.

How to install Python for our computer?

So for running Python program in you PC, you will need two things, python compiler and an IDE for writing our codes. You can write your code even in a notepad, but imagine how difficult it would be if you find a bug in 1000 lines of code, identifying in a note is very difficult. Here, IDE comes in use, in IDE you code is interrupted at every line where you get an error and it also has some color scheme which makes readability of code easy.

So, to install the Python compiler go to the official website of python, https://www.python.org/downloads/ and download the latest version of python from there.


By clicking on the download button your download will start. Then open the file which you have downloaded and from there your installation process will start. And, don't forget to check the 'Add Python 3.9 to PATH' because if you will not click this, you might find some errors while running your program.


After this click on 'Install Now' and your installation will start. Once the installation of python is done, next task is to install IDE for Python. There are variety of IDEs you can use any of them, such as PyCharm, Anaconda, Spider, Jupyter Notebook(it is a web based IDE), etc. I personally use PyCharm.

Checking for Successful Installation of Python

Now you are done with installation and it's time to check whether Python has been installed or not. So, for this open CMD and type the command as follows to check for that.

Type the command - py 
and then press ENTER. If py doesn't work, try for python or python3
This will display your Python version installed on your PC, hence verifying successful installation of Python.


In my case it's successfully installed.

Using Python as a Simple Calculator

Python allows you to use it as a calculator when writing code in CMD. You can even write code in CMD also and use it as a simple calculator. Let me demonstrate both of this using CMD.


In this picture you can see that, after calling python in CMD, I have written a short program which stores 7 in a and 8 in b, then find the sum of a and b then stores it in variable c. At last it prints the value of c. Here you can see that in CMD the code was executed after each line, if there would have been any error it would have shown there itself.

Now let's see how we can use it as a calculator.


In the above picture you can see that, I just opened the python compiler and just wrote 4+6, 7/5 and 12-7 as we used to do in a calculator. Here we are not writing any python code, but still it is calculating the correct result. And at last you can see that I have used quit(), this is used to get out of the python compiler. If you see the symbol '>>>' at the beginning of a line in CDM, it implies that you are within the python compiler.