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.
- 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
- Tuple basics and immutability
- Indexing, slicing, and iteration
- Conversion between tuples and lists
- Tuple methods:
index()
,count()
- 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
- Working with JSON in Python
json.loads()
,json.dumps()
,json.dump()
- Pretty printing and accessing nested JSON values
- 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
- Data cleaning and manipulation
- Basic text processing
- Preparing data structures for analytics tasks
- Building a foundation for libraries like Pandas
- Clone the repo:
git clone https://github.com/Ishmal793/Lists-Tuples-Dictionaries-JSON-Sets/blob/main/lists%2C_Tuples%2C_dictionary%2C_sets.ipynb