Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

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

  • Master Python's numeric types (int, float, complex)
  • Work with strings and string methods
  • Understand and manipulate lists
  • Use tuples for immutable sequences
  • Leverage dictionaries for key-value data
  • Apply sets for unique collections

📂 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

  • Completion of Module 01 (Python Basics)
  • Basic understanding of variables

🔗 Next Steps

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