Fresh Folder

Pages

Python

Updated 21. 10. 2026

Python is a general-purpose, high-level programming language known for its clean, readable syntax. It is used for web development, data analysis, machine learning and artificial intelligence, scientific computing, automation, scripting and teaching. It is consistently one of the most popular programming languages in the world.

A short history

Python was created by Guido van Rossum in the Netherlands, and the first version was released in 1991. The name comes from the British comedy group Monty Python, not from the snake.

Important milestones:

  • Python 2.0 (2000) – list comprehensions and a garbage collector.
  • Python 3.0 (2008) – a major, intentionally backward-incompatible cleanup of the language.
  • End of Python 2 (2020) – Python 2 stopped receiving updates, and Python 3 became the only supported line.

Python is developed by its community and stewarded by the Python Software Foundation (PSF). It is free and open source. Changes to the language are proposed and discussed in PEPs (Python Enhancement Proposals).

What Python looks like

Python uses indentation instead of curly braces to group code, which makes programs look tidy and similar to each other:

def greet(name: str) -> str:
    return f"Hello, {name}!"

for name in ["Alice", "Bob"]:
    print(greet(name))

The language follows a philosophy summed up in "The Zen of Python" (PEP 20), with lines such as "Readability counts" and "Simple is better than complex". You can read it by typing import this in Python.

Main features

  • Readable syntax – code is close to plain English and easy to learn.
  • Dynamic typing – variables don't need declared types, but optional type hints can be added and checked by tools.
  • Interpreted – code runs without a separate compilation step, which makes experimenting fast.
  • "Batteries included" – a large standard library covers files, networking, dates, JSON, regular expressions, testing and much more.
  • Multi-paradigm – supports procedural, object-oriented and functional styles.
  • Cross-platform – the same code runs on Linux, other desktop systems and servers.

Where Python is used

Area Popular tools
Web development Django, Flask, FastAPI
Data analysis pandas, NumPy, Jupyter
Machine learning and AI scikit-learn, PyTorch, TensorFlow
Scientific computing SciPy, Matplotlib
Automation and scripting standard library, Requests
Testing pytest, unittest
Teaching used in many schools and universities as a first language

The ecosystem

  • PyPI (the Python Package Index) – the main repository of third-party packages.
  • pip – the standard tool for installing packages from PyPI.
  • Virtual environments (venv) – keep each project's dependencies separate, so projects don't clash.
  • CPython – the reference implementation, written in C, and the one most people use. Others include PyPy, which is focused on speed.

Strengths and weaknesses

Strengths

  • Easy to learn and read.
  • Enormous ecosystem of libraries for almost any task.
  • Fast to write: small programs and prototypes come together quickly.
  • Large, friendly community and a lot of learning material.

Weaknesses

  • Slower than compiled languages, such as C or Rust, for CPU-heavy work. Performance-critical libraries are often written in C under the hood.
  • Dynamic typing can hide errors until runtime, unless you use type hints and checking tools.
  • Less common for mobile apps and in-browser code.

Getting started

  1. Install Python 3 from the official website, or use the version that comes with your Linux distribution.
  2. Create a virtual environment for your project: python3 -m venv .venv.
  3. Install packages with pip.
  4. Work through the official tutorial, which covers the basics of the language step by step.

Official sources

  • Python: https://www.python.org/
  • Python documentation: https://docs.python.org/3/
  • Python Package Index: https://pypi.org/