Skip to content

practice-python-for-beginners/data-structures-explained

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Data Structures Explained

Welcome to data-structures-explained, part of the practice-python-for-beginners series.

This repository introduces Python’s core collection data types: list, tuple, set, and dict.
These are essential for organizing and managing data effectively in real-world Python programs.


πŸ“¦ Repository: data-structures-explained

Purpose:
Introduce beginners to Python’s fundamental data structures β€” how to create, modify, and use lists, tuples, sets, and dictionaries for practical programming tasks.


πŸ“š Topics Covered

  • Creating and modifying lists
  • Using tuples for immutable collections
  • Storing unique items in sets
  • Managing key-value pairs in dictionaries
  • Common built-in methods and best practices

πŸ—‚ Directory Structure

data-structures-explained/
β”‚
β”œβ”€β”€ LICENSE
β”œβ”€β”€ README.md
β”‚
β”œβ”€β”€ exercises/
β”‚   β”œβ”€β”€ lists_example.py
β”‚   β”œβ”€β”€ tuples_example.py
β”‚   β”œβ”€β”€ sets_example.py
β”‚   β”œβ”€β”€ dictionaries_example.py
β”‚   └── tests/
β”‚       β”œβ”€β”€ test_lists_example.py
β”‚       β”œβ”€β”€ test_tuples_example.py
β”‚       β”œβ”€β”€ test_sets_example.py
β”‚       └── test_dictionaries_example.py
β”‚
└── requirements.txt

βš™οΈ Setup Instructions

  1. Clone the repo:

    git clone https://github.com/practice-python-for-beginners/data-structures-explained.git
    cd data-structures-explained
  2. (Optional) Create and activate a virtual environment:

    python -m venv venv
    source venv/bin/activate   # Windows: venv\Scripts\activate
  3. Install dependencies:

    pip install -r requirements.txt
  4. Run all tests:

    pytest

🧠 Learning Outcomes

By exploring the examples in this repository, learners will:

  • Gain confidence in handling lists, tuples, sets, and dictionaries.
  • Understand basic mutability and immutability.
  • Use built-in Python functions (len, sum, in, etc.) effectively.
  • Learn to perform add, remove, loop, and access operations.

🧾 License

All code in this repository is licensed under the GNU General Public License v3 (GPLv3).
See LICENSE for the full text.


Happy coding and exploring Python data structures!


About

data-structures-explained

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages