This module explores Pythonβs built-in data types in depth. Understanding data types is fundamental to effective Python programming, as they determine how data is stored, manipulated, and accessed.
| File | Topic | Description |
|---|---|---|
| numbers.py | Numeric Types | Integers, floats, complex numbers |
| strings.py | String Type | String manipulation and methods |
| lists.py | Lists | Mutable sequences |
| tuples.py | Tuples | Immutable sequences |
| dictionaries.py | Dictionaries | Key-value pairs |
| sets.py | Sets | Unordered unique collections |
Python Built-in Types
β
βββ Numeric Types
β βββ int (e.g., 42, -7, 0)
β βββ float (e.g., 3.14, -0.001)
β βββ complex (e.g., 3+4j)
β
βββ Sequence Types
β βββ str (e.g., "Hello")
β βββ list (e.g., [1, 2, 3])
β βββ tuple (e.g., (1, 2, 3))
β
βββ Mapping Type
β βββ dict (e.g., {"key": "value"})
β
βββ Set Types
β βββ set (e.g., {1, 2, 3})
β βββ frozenset
β
βββ Boolean Type
β βββ bool (True, False)
β
βββ None Type
βββ NoneType (None)
4-5 hours for complete understanding
After completing this module, proceed to 03-control-flow to learn about conditional statements and loops.