Page 1
Wink Notes
B.Tech CSE — 3rd Semester
Python Programming
— Unit - 1 —
1. Introduction to Python
Python was created by Guido van Rossum and released in 1991. It is designed to be highly readable, prioritizing programmer productivity over raw execution speed.
1.1 Key Features of Python
- Interpreted: Python code is executed line-by-line by an interpreter (typically CPython), unlike C/C++ which are compiled into machine code beforehand. This makes debugging easier but execution slower.
- Dynamically Typed: You don't need to declare variable types (e.g., `int x = 5`). You just write `x = 5`. The interpreter infers the type at runtime.
- High-Level: Abstracts away memory management. There are no pointers, and garbage collection is automatic.
- Multi-Paradigm: Supports Procedural, Object-Oriented, and Functional programming styles.
- "Batteries Included": Python comes with a massive standard library allowing you to do everything from connecting to web servers to reading CSV files without installing third-party packages.