Skip to main content

Python 3: Deep Dive (Part 3 - Dictionaries, Sets, JSON)

21h 58m 5s
English
Paid

Delve deep into the world of Python dictionaries and sets with this comprehensive course. Discover how crucial and omnipresent dictionaries are in Python—they form the backbone of classes, modules, namespaces, sets, and more.

Course Overview

Gain a thorough understanding of associative arrays and their implementation via hash maps. Learn how to employ hash functions to enhance your custom classes. Explore Python dictionaries and sets along with the myriad of operations you can perform on them.

What You'll Explore

  • The technical implementation of associative arrays using hash maps

  • Understanding and creating custom hash functions

  • Advanced operations with both Python dictionaries and sets

  • Specialized dictionary structures like OrderedDict and its relation to the built-in dict post Python 3.6

  • Exploring Python's multi-sets through the Counter class

  • Leveraging ChainMap and UserDict for creating custom dictionaries

  • Comprehensive guide on serializing and deserializing dictionaries with JSON

  • Utilizing schemas for custom JSON deserialization

  • An introduction to useful libraries such as JSONSchema, Marshmallow, PyYaml, and Serpy

This is an advanced Python course intended for those who have a strong foundational knowledge of Python.

Prerequisites

To fully benefit from this course, ensure you possess the following skills:

  • A solid understanding of Python basics such as loops, conditionals, and exception handling
  • Knowledge of functions and functional programming (recursion, *args, **kwargs, etc.)
  • Familiarity with lambdas, closures, and decorators
  • Ability to work with iterables, iterators, and generators
  • Understanding of variable scopes and namespaces
  • Experience with setting up and using Jupyter Notebooks and third-party library installations (e.g., using pip)

Who This Course is For

This course is ideal for Python developers who aim to deepen their proficiency with dictionaries and related features.

Learning Outcomes

  • Mastering associative arrays
  • Understanding hash tables and functions
  • Mastering Python's hashing implementations
  • Creating and customizing dictionaries
  • Using defaultdict and OrderedDict
  • Implementing Counter and ChainMap
  • Serialization and deserialization techniques
  • Working with JSON performance optimizations
  • Introduction to selected third-party libraries

About the Author: udemy

udemy thumbnail
By connecting students all over the world to the best instructors, Udemy is helping individuals reach their goals and pursue their dreams. Udemy is the leading global marketplace for teaching and learning, connecting millions of students to the skills they need to succeed. Udemy helps organizations of all kinds prepare for the ever-evolving future of work. Our curated collection of top-rated business and technical courses gives companies, governments, and nonprofits the power to develop in-house expertise and satisfy employees’ hunger for learning and development.

Watch Online 83 lessons

This is a demo lesson (10:00 remaining)

You can watch up to 10 minutes for free. Subscribe to unlock all 83 lessons in this course and access 10,000+ hours of premium content across all courses.

View Pricing
0:00
/
#1: 1.1. Course Overview
All Course Lessons (83)
#Lesson TitleDurationAccess
1
1.1. Course Overview Demo
12:57
2
1.2. Prerequisites
07:23
3
2.1. Introduction
03:26
4
2.2. Associative Arrays
05:41
5
2.3. Hash Maps
24:13
6
2.4. Python Dictionaries
09:40
7
2.5. Python's hash() Function
08:04
8
3.1. Introduction
01:14
9
3.2. Creating Dictionaries - Lecture
13:10
10
3.3. Creating Dictionaries - Coding
24:02
11
3.4. Common Operations - Lecture
08:12
12
3.5. Common Operations - Coding
32:44
13
3.6. Dictionary Views - Lecture
10:42
14
3.7. Dictionary Views - Coding
30:13
15
3.8. Updating, Merging, and Copying - Lecture
12:21
16
3.9. Updating, Merging, and Copying - Coding
33:57
17
3.10. Custom Classes and Hashing - Lecture
20:26
18
3.11. Custom Classes and Hashing - Coding
33:55
19
4.1. Exercises
06:22
20
4.2. Solution 1
04:35
21
4.3. Solution 2
02:05
22
4.4. Solution 3
07:15
23
4.5. Solution 4
05:23
24
5.1. Introduction
01:56
25
5.2. Basic Set Theory
12:36
26
5.3. Python Sets
08:59
27
5.4. Creating Sets - Lecture
03:41
28
5.5. Creating Sets - Coding
14:46
29
5.6. Common Operations - Lecture
03:13
30
5.7. Common Operations - Coding
15:18
31
5.8. Set Operations - Lecture
07:47
32
5.9. Set Operations - Coding
20:31
33
5.10. Update Operations - Lecture
06:09
34
5.11. Update Operations - Coding
21:08
35
5.12. Copying Sets - Lecture
01:14
36
5.13. Copying Sets - Coding
08:11
37
5.14. Frozen Sets - Lecture
06:55
38
5.15. Frozen Sets - Coding
26:38
39
5.16. Dictionary Views - Lecture
09:28
40
5.17. Dictionary Views - Coding
27:59
41
6.1. Project 1 - Goals
05:31
42
6.2. Project 1 - Solution
49:38
43
7.1. Introduction
04:30
44
7.2. Pickling - Lecture
05:58
45
7.3. Pickling - Coding
28:48
46
7.4. JSON Serialization - Lecture
07:23
47
7.5. JSON Serialization - Coding
22:30
48
7.6. Custom JSON Encoding - Lecture
02:31
49
7.7. Custom JSON Encoding - Coding
37:37
50
7.8. Using JSONEncoder - Lecture
11:37
51
7.9. Using JSONEncoder - Coding
34:01
52
7.10. Custom JSON Decoding - Lecture
16:36
53
7.11. Custom JSON Decoding - Coding
51:59
54
7.12. Using JSONDecoder - Lecture
01:31
55
7.13. Using JSONDecoder - Coding
41:02
56
7.14. JSON Schema
26:07
57
7.16. PyYaml
18:17
58
7.17. Serpy
08:57
59
8.1. Exercises
03:49
60
8.2. Solution 1
15:22
61
8.3. Solution 2
21:02
62
8.4. Solution 3
17:05
63
9.1. Introduction
02:03
64
9.2. DefaultDict - Lecture
06:34
65
9.3. DefaultDict - Coding
30:47
66
9.4. OrderedDict - Lecture
03:41
67
9.5. OrderedDict - Coding
24:23
68
9.6. OrderedDict and Python 3.6 Dicts
31:45
69
9.7. Counter - Lecture
05:02
70
9.8. Counter - Coding
43:45
71
9.9. ChainMap - Lecture
11:09
72
9.10. ChainMap - Coding
22:45
73
9.11. UserDict - Lecture
05:35
74
9.12. UserDict - Coding
25:39
75
10.1. Exercises
05:36
76
10.2. Solution 1
05:53
77
10.3. Solution 2
04:38
78
10.4. Solution 3
14:30
79
11.1. Python 3.10
25:18
80
11.2. Python 3.9
28:47
81
11.3. Python 3.8 3.7
34:26
82
12.1. The MappingProxy Type
05:52
83
12.2. Marshmallow
33:37
Unlock unlimited learning

Get instant access to all 82 lessons in this course, plus thousands of other premium courses. One subscription, unlimited knowledge.

Learn more about subscription

Books

Read Book Python 3: Deep Dive (Part 3 - Dictionaries, Sets, JSON)

#Title
11.3. Python Deep Dive 3
22.2. Associative Arrays
32.3. Hash Maps
42.4. Python Dictionaries
52.5. Python's hash() Function
63.2. Creating Dictionaries
73.4. Common Operations
83.6. Dictionary Views
93.8. Updating, Merging and Copying
103.10. Custom Classes and Hashes
115.2. Set Theory
125.3. Python Sets
135.4. Creating Sets
145.6. Common Operations
155.8. Set Operations
165.10. Update Operations
175.12. Copying Sets
185.14. Frozen Sets
195.16. Dictionary Views
207.2. Pickling
217.4. JSON Serialization
227.6. Custom JSON Encoding
237.8. JSONEncoder Class
247.10. Custom JSON Decoding
257.12. Using the JSONDecoder Class
269.2. DefaultDict
279.4. OrderedDict
289.7. Counters
299.9. ChainMap
309.11. UserDict