Python Introduction
Why Python? What can it build?
Python is a high-level, general-purpose, interpreted programming language created by Guido van Rossum and first released in 1991. It emphasises code readability through significant indentation, and ships with a massive standard library — letting you accomplish complex tasks (web servers, data analysis, automation, ML, scripting) in a fraction of the code other languages require.
Python is dynamically typed (you don't declare types), garbage-collected (memory is freed automatically), and supports multiple paradigms — procedural, object-oriented and functional. As of 2026, it is the most-loved language on Stack Overflow and the de facto language for data science, AI/ML, scripting, and beginner programming education.
- Beginner-friendly — reads like English; you can write a useful program on day one.
- Massive ecosystem — 500,000+ packages on PyPI for every domain (web, data, AI, automation).
- Highest demand in 2026 — top language in AI/ML (PyTorch, TensorFlow), data science (Pandas, NumPy), and back-end web (Django, FastAPI).
- Cross-platform — the exact same code runs on Windows, macOS, Linux and even Raspberry Pi.
- Career-ready — average Python dev salary in India is ₹8-12 LPA; senior data scientists clear ₹25-40 LPA.
- Excellent for prototyping — go from idea to working demo in hours, not days.
- Web applications — Instagram, Pinterest, Reddit, YouTube and Spotify all run heavy Python back-ends.
- Data science & analytics — Pandas + NumPy + Matplotlib power most analyst dashboards.
- AI / Machine Learning — PyTorch, TensorFlow, scikit-learn, Hugging Face: every major ML framework speaks Python.
- Automation & scripts — file batchers, scrapers, deployment scripts, system admin tools.
- APIs & micro-services — FastAPI / Flask / Django REST.
- Game logic, IoT, robotics, fintech, security tooling — Python sits in all of them.
| Feature | Python | Java | C/C++ |
|---|---|---|---|
| Typing | dynamic | static | static |
| Compilation | interpreted (bytecode) | compiled to bytecode | compiled to native |
| Memory mgmt | automatic (GC) | automatic (GC) | manual / RAII |
| Verbosity | very low | high | very high |
| Hello World lines | 1 | 5 | 5-7 |
| Best for | scripting, ML, web back-ends | enterprise apps | OS, games, embedded |
python# A complete Python program — no main(), no headers, no boilerplate. print("Hello, World!") print("Welcome to Codekilla!")
Hello, World!
Welcome to Codekilla!
- Python is interpreted, dynamically typed, and garbage-collected.
- It powers 90 % of modern AI/ML, much of data science and a huge slice of web back-ends.
- A Python 'Hello, World!' is one line — no boilerplate.
- Indentation defines blocks instead of
{ }— same code, far less noise. - Always use Python 3 — Python 2 reached end-of-life in January 2020.
- Write a Python program that prints your name and age on two separate lines.
- Read two numbers from
input(), add them, and print the sum. - Bookmark https://docs.python.org/3/tutorial/ — the single best free resource on Earth.
- Names communicate intent —
weekly_revenueis documentation;wris a riddle. - When you can't predict an output, run it and see. Surprises are how you learn.
- Use the Codekilla online compiler to experiment without leaving the lesson page.
Quick recap quiz?
We'll generate 5 MCQs from this lesson and check your understanding instantly. Takes ~30 seconds.
