Python Tutorial
Learn Python, the beginner-friendly language used for automation, web development, data science and AI.
Python is a high-level, interpreted, dynamically typed, general-purpose language created by Guido van Rossum and first released in 1991. Its clean, readable syntax uses indentation instead of braces to mark blocks of code.
Your First Python Program
print("Hello, Python!")
Hello, Python!
That's the whole program. There's no class, no main and no semicolon.
Features of Python
| Feature | Meaning |
|---|---|
| Easy to learn | Simple, English-like syntax |
| Interpreted | Runs line by line; no separate compile step |
| Dynamically typed | No need to declare variable types |
| Portable | Same code runs on Windows, Linux and macOS |
| Huge library | "Batteries included" standard library plus packages like NumPy, Pandas, Django |
| Multi-paradigm | Procedural, object-oriented and functional styles |
Where is Python Used?
- Data science and machine learning (Pandas, scikit-learn, PyTorch)
- Web development (Django, Flask, FastAPI)
- Automation and scripting
- Scientific computing, education and testing
How to Run Python
python3 hello.py
Hello, Python!
Track your progress through the Python course