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

Python
print("Hello, Python!")
Hello, Python!

That's the whole program. There's no class, no main and no semicolon.

Features of Python

FeatureMeaning
Easy to learnSimple, English-like syntax
InterpretedRuns line by line; no separate compile step
Dynamically typedNo need to declare variable types
PortableSame code runs on Windows, Linux and macOS
Huge library"Batteries included" standard library plus packages like NumPy, Pandas, Django
Multi-paradigmProcedural, 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

Terminal
python3 hello.py
Hello, Python!
Track your progress through the Python course