Introduction:

Python is a high-level, interpreted programming language used in various sectors. It is fastest growing programming language. It is not only used among software engineers but also among mathematicians, data analyst,scientist,accountants,etc.. It is very easy to learn and reduces number of lines of codes. Python can be treated in 3 ways such as procedural way, object oriented way or a functional way.

Environmental Setup:

Python can be directly installed from its official website. After downloading, we can run the setup file and install in our system.

To check whether Python already installed in our system or not, we need to run the command “python –Version” or simply “py” in command prompt.

The first command will give exact version if python is already installed. Else it will display python is not found.

The second command will open the python shell to run python program.

In this shell, we can type and run programs. Else we can type program in a separate file and save it with “.py” extension.

To run the file we can open the command prompt, open python shell and type the following command:

python {folderpath}\filename.py

ex: python C:\Users\saina\Python\sample.py

It will give output for the program written in the file.

The program can be run in editors like Visual Studio also. We need to install python extension in visual studio code and can run the program in editor.

Features of Python:

  • Interpreted language
  • Object-oriented programming language
  • Free and open-source
  • Versatile and Extensible
  • Supports Multiple platform
  • Flexible and supports GUI
  • Dynamically typed language
  • Huge and active community to support

Advantages:

As mentioned in features it has many advantages like easy to learn and understand, improves productivity, has many libraries,etc.. It has very simple syntax that makes easy to use.

Leave a Reply