0% found this document useful (0 votes)
5 views4 pages

Internal Data Structures

The document outlines various tasks and methods for working with lists, tuples, sets, and dictionaries in Python, categorized into three levels: Level 0, Intermediate, and Level 1. Each section provides a comprehensive list of operations, such as creating, modifying, and analyzing data structures. The tasks range from basic operations like creating a list to more complex functions like managing student marks or processing JSON-like data.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views4 pages

Internal Data Structures

The document outlines various tasks and methods for working with lists, tuples, sets, and dictionaries in Python, categorized into three levels: Level 0, Intermediate, and Level 1. Each section provides a comprehensive list of operations, such as creating, modifying, and analyzing data structures. The tasks range from basic operations like creating a list to more complex functions like managing student marks or processing JSON-like data.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

3️⃣ List

(Uses all list inbuilt methods)

Level 0

1. Create list and print elements


2. Append elements to list
3. Insert element at index
4. Remove element using remove()
5. Pop last element

Intermediate

6. Sort list ascending


7. Sort list descending
8. Reverse list
9. Find index of element
10. Count occurrences
11. Copy list
12. Clear list
13. Extend list with another list
14. Find max and min
15. Sum of elements

Level 1

16. Remove duplicates without set


17. Find second largest element
18. Rotate list k times
19. Split list into even and odd
20. Merge two sorted lists
21. Check list is palindrome
22. Find missing number
23. Frequency dictionary from list
24. Sublist sum equals target
25. Longest increasing subsequence (basic)
4️⃣ Tuple
(Uses all tuple inbuilt methods)

Level 0

1. Create tuple and print


2. Access elements by index
3. Count element occurrence
4. Find index of element
5. Convert tuple to list

Intermediate

6. Convert list to tuple


7. Tuple slicing
8. Unpack tuple values
9. Swap values using tuple
10. Nested tuple access
11. Check element existence
12. Length of tuple
13. Iterate tuple using loop
14. Tuple with mixed data types
15. Immutable behavior demo

Level 1

16. Remove duplicates (convert logic)


17. Sort tuple elements
18. Find max and min
19. Pair elements from two tuples
20. Flatten nested tuple
21. Count frequency using tuple
22. Tuple palindrome check
23. Find repeated elements
24. Tuple comprehension simulation
25. Tuple based matrix operations
5️⃣ Sets
(Use all set inbuilt methods)

Level 0

1. Create set
2. Add element
3. Remove element
4. Discard element
5. Clear set

Intermediate

6. Union of sets
7. Intersection
8. Difference
9. Symmetric difference
10. Copy set
11. Check subset
12. Check superset
13. Frozen set usage
14. Length of set
15. Iterate set

Level 1

16. Remove duplicates from list using set


17. Common elements in multiple sets
18. Unique characters in string
19. Set based anagram check
20. Missing numbers using set
21. Set operations on user input
22. Unique words in paragraph
23. Venn diagram logic
24. Set based filtering
25. Real-time duplicate detection
6️⃣ Dictionary
(Uses all dictionary inbuilt methods)

Level 0

1. Create dictionary
2. Access values using key
3. Add key-value pair
4. Delete key
5. Get keys list

Intermediate

6. Get values list


7. Iterate keys and values
8. Update dictionary
9. Copy dictionary
10. Clear dictionary
11. Check key existence
12. Default value using get()
13. Merge dictionaries
14. Count word frequency
15. Dictionary from two lists

Level 1

16. Sort dictionary by key


17. Sort dictionary by value
18. Invert dictionary
19. Nested dictionary access
20. Student marks management system
21. Frequency counter from string
22. Dictionary based menu program
23. Group elements using dictionary
24. JSON-like data processing
25. Real-world config manager

You might also like