Python Introduction and Setup
Harry
· 14 Sep 2026
· 2 views
Advertisement
What is Python?
Python is a high-level, interpreted programming language famous for its readable, English-like syntax. It is used everywhere: web back-ends, data science, machine learning, automation, scripting and education.
Why Python Is So Popular
- Readable: indentation replaces braces, so code reads like a story.
- Interpreted: run programs immediately without a compile step.
- Batteries included: a huge standard library ships with it.
- Huge ecosystem: Django, Flask, pandas, NumPy, TensorFlow.
- Beginner friendly: the fastest route from idea to running code.
Installing Python
Download from python.org and check Add Python to PATH during the Windows installer. On Ubuntu/Debian:
sudo apt update && sudo apt install -y python3 python3-pip
python3 --versionYour First Program
print("Hello, World!")Save it as hello.py and run with:
python hello.pyUsing the Interactive Shell
python
>>> 2 + 2
4
>>> exit()Key Points
- Python uses indentation (4 spaces) instead of braces to group blocks.
- Run a file with
python file.py; explore live with the REPL. - PEP 8 defines the recommended code style.