Skip to content

Beginner-friendly Python practice covering core collection types like lists, tuples, dictionaries, sets, and JSON with real-world problems.

Notifications You must be signed in to change notification settings

Ishmal793/Lists-Tuples-Dictionaries-JSON-Sets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Python Collections Practice

This repository contains beginner-friendly practice code for mastering Python Collections, which are essential building blocks in any Python-based data analytics or software development workflow.

πŸ” Topics Covered

πŸ“‹ Lists

  • List creation and slicing
  • Iteration using for, while, and list comprehensions
  • List functions: append(), insert(), remove(), pop(), copy(), extend(), sort(), clear()
  • Problem-solving with lists

πŸ“Œ Tuples

  • Tuple basics and immutability
  • Indexing, slicing, and iteration
  • Conversion between tuples and lists
  • Tuple methods: index(), count()

πŸ“‚ Dictionaries

  • Key-value pair structure
  • Accessing, updating, and removing elements
  • Dictionary methods: get(), items(), keys(), values(), pop(), popitem(), setdefault(), update(), copy()
  • Nested dictionaries
  • Dictionary-based problem solving

🧾 JSON

  • Working with JSON in Python
  • json.loads(), json.dumps(), json.dump()
  • Pretty printing and accessing nested JSON values

πŸ” Sets

  • Set creation and uniqueness
  • Common operations: add(), remove(), discard(), pop(), clear()
  • Set functions: union(), intersection(), difference(), symmetric_difference()
  • Checking subsets and supersets
  • Set-based problems

🧠 Use Cases

  • Data cleaning and manipulation
  • Basic text processing
  • Preparing data structures for analytics tasks
  • Building a foundation for libraries like Pandas

πŸš€ Getting Started

  1. Clone the repo:
    git clone https://github.com/Ishmal793/Lists-Tuples-Dictionaries-JSON-Sets/blob/main/lists%2C_Tuples%2C_dictionary%2C_sets.ipynb

About

Beginner-friendly Python practice covering core collection types like lists, tuples, dictionaries, sets, and JSON with real-world problems.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published