course content

Course Content

Python Data Structures

Update() MethodUpdate() Method

In sets, you can add multiple elements at once using the update() method. Let's dive into how to use this method.

Task

Here's your set:

After modifying the set, it should look like this:

Be sure to use the update() method.

Everything was clear?

Section 4. Chapter 3
toggle bottom row