Skip to main content
CF

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

Udemy is the largest open marketplace for online courses on the internet. Founded in 2010 by Eren Bali, Oktay Caglar, and Gagan Biyani and headquartered in San Francisco, the company went public on the Nasdaq in 2021 under the ticker UDMY. The platform hosts well over two hundred thousand courses across software development, IT and cloud, data science, design, business, marketing, and creative skills, taught by tens of thousands of independent instructors. Roughly seventy million learners use it worldwide, and the corporate arm — Udemy Business — supplies a curated subset of that catalog to enterprise customers.

Because Udemy is a marketplace rather than a single editorial publisher, the catalog is uneven by design. The strongest material lives in the long-form, project-based courses authored by working engineers — full-stack JavaScript, React, Node.js, Python data science, AWS, Docker and Kubernetes, mobile development with Flutter and React Native, and cloud certification preparation. The CourseFlix listing under this source is the slice of that catalog that has been mirrored here for offline-friendly viewing, organized by topic and updated as new releases land. Pricing on Udemy itself swings dramatically with the site's near-permanent sales, which is why the platform is best treated as a deep reference catalog: pick instructors with strong reviews and a track record of updating their material rather than buying on the headline price alone.

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)

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

Related courses

Frequently asked questions

What are the prerequisites for enrolling in this course?
To fully benefit from this course, you should have a solid understanding of Python basics such as loops, conditionals, and exception handling. Familiarity with functions is also necessary. This foundational knowledge will help you grasp the advanced concepts covered, such as custom hash functions and JSON serialization.
What specific projects or exercises will I work on in this course?
The course includes several projects and exercises designed to reinforce your learning. For instance, Project 1 involves practical goals and solutions related to dictionaries and sets. Additionally, there are exercises focused on JSON serialization and custom encoding, allowing you to apply the concepts learned in a practical context.
Who is the target audience for this course?
This course is intended for advanced Python users who already have a strong foundational knowledge of Python. It is suitable for those looking to deepen their understanding of data structures such as dictionaries and sets, as well as those interested in JSON serialization and employing custom hash functions.
How does the depth and scope of this course compare to other Python courses?
This course provides a deep dive into dictionaries and sets, covering technical implementations such as associative arrays using hash maps and custom hash functions. It also includes advanced topics like JSON serialization with libraries such as JSONSchema and Marshmallow. The extensive focus on these areas distinguishes it from more introductory Python courses.
What libraries and tools are covered in the course?
The course covers a range of libraries and tools essential for working with dictionaries, sets, and JSON in Python. These include JSONSchema, Marshmallow, PyYaml, and Serpy, which are useful for tasks like custom JSON deserialization and schema validation. You will learn how to apply these tools in practical scenarios.
Is there anything that this course does not cover?
The course does not cover basic Python concepts such as simple loops and conditionals, as it assumes that students already possess this foundational knowledge. It also does not delve into Python topics unrelated to dictionaries, sets, or JSON, focusing instead on these specific data structures and serialization techniques.
What is the expected time commitment for completing this course?
The course comprises 83 lessons, each designed to provide an in-depth understanding of dictionaries, sets, and JSON in Python. While the exact runtime is not specified, students should expect to dedicate a substantial amount of time to fully engage with all lectures, coding exercises, and projects to maximize learning outcomes.