✍️Introduction
In Python, a set is used to store multiple values in a single variable, just like lists and tuples.
But sets are unordered, unindexed, and do not allow duplicate values.
This article will help you understand:
-
What is a set
-
How to create sets
-
Set properties
-
Set operations with examples
What is a Set in Python?
A set is a collection of unique elements written inside curly brackets { }.
Example:
Comments
Post a Comment