Python is a General-Purpose Programming Language. It is used for developing Standalone applications, Web applications, Games, Data Science and Machine Learning, and much more. Python is an Object-Oriented Programming Language means it can model real world objects. It includes many other features in it and you will read them in detail.
We can run Python programs in various Operating Systems Like Windows, Mac os, Linux this feature is called Portability. Whenever we write a code on our device the code goes through an Interpreter, which converts the code we wrote into the language understood by our computer Processor so this is an Interpreted Programming Language.
Python has a huge set of libraries. A python library is a collection of programs you can incorporate into your own program without writing a code for them.
A bit on Python’s history:
Python was conceive in the late 1980s by Guido van Rossum at Centrum Wiskunde & Informatica in the Netherlands. Its implementation began in December 1989. However, it is derive from many other languages like ABC, Modula-3, c, c++, and other scripting languages.
Its version 1.0 was released in November 1994. though its version 2.0 was released on October 16, 2000. Meanwhile, python 3.0 was released in 2008. Python 3.0 is not backward compatible with Python 2.0. The latest version is 3.9 was released in October 2020.
How Python executes the code as an output?
It uses three main components to generate an output.
- Parser
- Compiler
- Interpreter
The Parser uses the source code to generate an abstract syntax tree.
A Compiler converts the generated abstract syntax tree into python byte code.
The Interpreter executes the Byte code line-by-line.
Python coding in 3 different ways:
- Immediate mode.
- Script mode.
- Integrated Development Environment (IDLE).
As, I mentioned What is Python, therefore, its History and How it works in the real world. I hope you understood the simple and clean introduction written by me would help you to remember a few things about Python.
How to Install Python?
Step-1: Open browser and search www.python.org result will be the below website and click on Downloads select the version you want to download on your system. I have selected 3.8.2 for 32-Bit installers. You can also install 64-Bit it depends on your operating system, because this is the version we are currently using for developing web applications, Data science, etc…
Step-2: After clicking download an executable file can be download on your device click on that file to open.
Click on the check box “ Add Python 3.8 to set the path” on your device.
Step-3: Now click on “Customize installation” it will display the below window as you can see in the window there is a section to set installation Location called “Customize install location” then click on the “browse button” to Choose The Location For Installing it.
Whenever you set the path on your device make sure it’s easy to remember. in the above figure path is set default, it is a lengthy path better to change your path and click on the Install button.
Step-4: After clicking on install button you will get a window like this click on the Yes Button.
After clicking on YES Python will install on your device
Step-5: Your screen appear like this when your system is complete installing it, you will Get A Successful Message. And Close The Window.
Step-6: Now click on the search icon on your desktop to see whether the Python is install or not. So, here it is we install Python on our Desktop now we can check it.
How to run a Python program?
Python code can run on the terminal, using Python IDLE, and also using command prompt.
Now I will show you a sample program using the Terminal open Python shell.
We use the print() function for printing a single or block of statements in our program. In the below screen I wrote a sample program for printing a “Hello world” statement. This is one way to execute a program this method is the Immediate mode.
The Python is Install on your device. Now go and start learning it. I hope you understood the process of Installation in this blog.
How to Install Anaconda on windows?
Step-1: Open browser and search www.anaconda.com and click on the products menu select “Individual Edition” scroll down until you reach a window like this. Click on the version you want to download.
Step-2: click on the downloaded file to install Anaconda on your device. Now Click On Next.
Step-3: Read the License agreement carefully and click on I Agree.
Step-4: Now select the required option and click on Next.
Step-5: If you want to set the path then click on browser or else continue with the default path and click on Next.
Step-6: If you want to set Anaconda as your system PATH environment variable. Then Click On The Check Box And Click On Install.
Step-7: click on Next.
Step-8: Click on Finish. To complete the setup of Anaconda.
Step-9: Check whether the anaconda is install on your desktop or not. Click on the search icon on your device and enter Anaconda. In the below screen you can see anaconda is install now. click on the Anaconda Navigator and start doing your programs.
Anaconda is a GUI based application and a package manager, also contains many environments mostly used for Python/R Data science distribution, and a collection of over 7,500+ open-source distributions.
If you want to run a program in it, Then click on the jupyter notebook, click on the launch button and select a new file to run your code in it. The Anaconda contains many built-in libraries very easy to use.
So, In this blog I have explained to you about Python, Installation process of Python and Anaconda. If any queries let us know about it.Hope you understood each and every step. Happy coding.
written by: Sangamreddy Manasa valli
reviewed by: Umamah
If you are Interested In Machine Learning You Can Check Machine Learning Internship Program
Also Check Other Technical And Non Technical Internship Programs