Course Content
Python Data Structures
Python Data Structures
Update() Method
In sets, you can add multiple elements at once using the update()
method. Let's dive into how to use this method.
Note
set() is unordered, so the order of elements may appear different each time you create or modify the same set.
Task
Here's your set:
After modifying the set, it should look like this:
Be sure to use the update()
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?
Update() Method
In sets, you can add multiple elements at once using the update()
method. Let's dive into how to use this method.
Note
set() is unordered, so the order of elements may appear different each time you create or modify the same set.
Task
Here's your set:
After modifying the set, it should look like this:
Be sure to use the update()
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?
Update() Method
In sets, you can add multiple elements at once using the update()
method. Let's dive into how to use this method.
Note
set() is unordered, so the order of elements may appear different each time you create or modify the same set.
Task
Here's your set:
After modifying the set, it should look like this:
Be sure to use the update()
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?
In sets, you can add multiple elements at once using the update()
method. Let's dive into how to use this method.
Note
set() is unordered, so the order of elements may appear different each time you create or modify the same set.
Task
Here's your set:
After modifying the set, it should look like this:
Be sure to use the update()
method.