Nearby lessons

1 of 108

Python - Introduction

What is Python?

Python is a high-level, general-purpose programming language.

It is easy to learn, easy to read, and easy to write.

Python is widely used for web development, automation, data science, machine learning, artificial intelligence (AI), and many other applications.

Python is one of the best programming languages for beginners.

History of Python

Python was developed by Guido van Rossum in 1989 while working at the National Research Institute in the Netherlands.

Python was officially released to the public on 20 February 1991.

Origin of the Python Name

The name Python was taken from the BBC comedy TV show "Monty Python's Flying Circus".

The show was broadcast from 1969 to 1974.

Guido van Rossum liked the name because it was short, unique, and interesting.

Why Python is So Popular

Python has become one of the most popular programming languages because it is simple and powerful.

Main reasons:

1. Easy to Learn

  • Simple and readable syntax
  • Easy for beginners

2. Less Code

  • Python programs are shorter than many other programming languages.
  • You can complete the same task with fewer lines of code.

3. Rich Libraries

  • Python provides many ready-made libraries.
  • You only need to import and use them.
  • This saves development time.

4. Supports Different Programming Styles

  • Object-Oriented Programming (OOP)
  • Procedural Programming
  • Scripting
  • Modular Programming

5. Free and Open Source

  • Anyone can download and use Python for free.
  • It is maintained by a large open-source community.

6. Cross Platform

  • Runs on Windows, macOS, and Linux.

Features Taken from Other Languages

Python includes useful features from different programming languages.

  • Functional programming features from C.
  • Object-oriented programming features from C++.
  • Scripting features from Perl and Shell Script.
  • Modular programming features from Modula-3.

Most of Python's syntax is influenced by the C and ABC programming languages.

Where Can We Use Python?

Python can be used in many different types of applications.

  1. Desktop Applications
  2. Web Applications
  3. Database Applications
  4. Network Programming
  5. Game Development
  6. Data Analysis
  7. Machine Learning
  8. Artificial Intelligence (AI)
  9. Internet of Things (IoT)

Popular Companies Using Python

Many famous companies use Python.

  • Google
  • YouTube
  • Microsoft
  • IBM
  • Yahoo
  • NASA
  • New York Stock Exchange (NYSE)

Python File Extensions

Python source code files use the .py extension.

Compiled bytecode files use the .pyc extension.

Popular Python Editors

  • VS Code - Lightweight and popular editor
  • PyCharm - Professional IDE for Python
  • Thonny - Best for beginners
  • Jupyter Notebook - Popular for data science
  • Sublime Text - Fast and simple text editor

Example Program

🐍
main.py
Python 3 Runtime
Loading Editor...
Output Preview
Hello, Python!

🧠 Test Your Knowledge

3 Questions

Progress: 0 / 3
Keep Going!Python - Installation