Introduction to Python

Introduction:

In 1991, Guido Van Rossum is known as the founder of Python programming.

Python is a general purpose, dynamic, high-level, and interpreted programming language. It supports Object Oriented programming approach to develop applications.

 

Python popular frameworks and Libraries:

Some popular frameworks and libraries of Python as follows.

  • Web development (Server-side): Django Flask, Pyramid, CherryPy
  • GUIs based applications: Tk, PyGTK, PyQt, PyJs, etc.
  • Machine Learning: TensorFlow, PyTorch, Scikit-learn, Matplotlib, SciPy, etc.
  • Mathematics: NumPy, Pandas, etc.

 

 

Features of Python:

  • Easy to learn and use: Python has a simple and straightforward syntax, making it an excellent choice for beginners. It uses indentation to define blocks of code, eliminating the need for braces or semicolons.
  • Python is an interpreted language; it means the Python program is executed one line at a time. The advantage of being interpreted language, it makes debugging easy and portable.
  • Object Oriented Programming: supports object-oriented language and concepts of classes and objects come into existence. It supports inheritance, polymorphism, and encapsulation, etc.
  • Platform Independent: Python is a platform-independent language, which means that you can write code on one platform (e.g., Windows) and run it on another (e.g., macOS or Linux) without any modifications.
  • GUI Programming support: GUI is used for the developing Desktop application. PyQT5, Tkinter, Kivy are the libraries which are used for developing the web application.

 

Python Indentation:

Indentation refers to the spaces at the beginning of a code line.

Note: The indentation in Python is very important.

Python uses indentation to indicate a block of code.

 

Python Comments:

Comments can be used to:

  • explain Python code.
  • make the code more readable.
  • prevent execution when testing code.

Comments starts with a #, and Python will ignore them.

Note: Comments can be placed at the end of a line, and Python will ignore the rest of the line.

 

 

Related Articles

post a comment