Python is a general-purpose, interpreted language created by Guido van Rossum and maintained by the Python Software Foundation and open-source contributors. It prioritizes readability—often called "executable pseudocode."
Core characteristics
- Dynamic typing — types attach to objects, not variable names; optional static hints with type checkers
- Automatic memory management — reference counting plus a cyclic GC; no manual
free()like C++ - Multi-paradigm — procedural, OOP, and functional patterns (comprehensions, higher-order functions)
- Batteries included — rich stdlib for I/O, networking, dates, and more
Typical run flow (local)
- Save code to
script.py - Run
python3 script.py - CPython compiles to bytecode (
.pyccached) and executes
Where Python appears
Django and Flask APIs, data pipelines, Jupyter notebooks, DevOps automation, ML research, and glue scripts. Compare JVM careers with the Java track or .NET with C#.
Important interview questions and answers
- Q: Is Python only for scripting?
A: No—large production systems use Python for web (Django), data engineering, and ML serving. - Q: Python vs Java in one line?
A: Both are high-level OOP languages; Python is dynamically typed with indentation-based blocks; Java is statically typed on the JVM.
Self-check
- What command runs a Python script locally?
- Name one domain where Python is commonly used.
Tip: Python source uses .py files executed by CPython—think readable scripting with room to grow into Django.
Interview prep
- Is Python garbage collected?
Yes—CPython uses reference counting plus a cyclic garbage collector for unreachable object cycles.
- Who uses Python?
Django/Flask teams, data engineers, ML researchers, DevOps automation, and organizations scripting around larger systems.