Python ยท Chapter 1 of 45

Python Introduction

Python is a high-level, interpreted programming language created by Guido van Rossum in 1991. It emphasises readable code and short syntax, so beginners can write useful programs quickly.

Today Python powers web apps (Instagram, Reddit), data science (pandas, NumPy), machine learning (TensorFlow, PyTorch), automation scripts and even microcontrollers.

Why learn Python?

Python's syntax looks close to plain English, which lowers the barrier for new programmers. It has a huge standard library and a giant community, so most problems have a ready-made package on PyPI.

Where is Python used?

Web backends (Django, Flask, FastAPI), data analysis (pandas), machine learning (scikit-learn, PyTorch), scripting/automation, DevOps, game prototypes, education, and scientific computing.

Example 1 (python)
print("Hello, World!")
Output
Hello, World!

print() is a built-in function that writes text to the screen.

Example 2 (python)
name = "Ada"
print("Hi", name)
Output
Hi Ada

Variables don't need type declarations โ€” Python figures out the type from the value.

Key points

  • Python is interpreted, dynamically typed and open-source.
  • It is used across web, data, AI, automation and more.
  • Code is executed line-by-line by the Python interpreter.
  • The current major version is Python 3 โ€” always prefer it over Python 2.
๐Ÿ’ก Note: Python 2 reached end-of-life in 2020. All new code should target Python 3.8 or newer.

๐Ÿ“ Quick Quiz

1. Who created Python?

2. Python is:

3. Which of these is NOT a common Python use case?