Python-Learning-Course

Module 02: Data Types

πŸ“‹ Overview

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.

🎯 Learning Objectives

πŸ“‚ Module Contents

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

πŸ“Š Data Types Overview

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)

⏱️ Estimated Time

4-5 hours for complete understanding

βœ… Prerequisites

πŸ”— Next Steps

After completing this module, proceed to 03-control-flow to learn about conditional statements and loops.