what are Python Sets

what are Python Sets

Sets are used to store multiple items in a single variable.

Sets are used to store multiple items in a single variable.

A set is a collection which is unordered, unchangeable*, and unindexed.

A set is a collection which is unordered, unchangeable*, and unindexed.

Create a Set: thisset = {"apple", "banana", "cherry"} print(thisset)

Create a Set: thisset = {"apple", "banana", "cherry"} print(thisset)

what are Python Sets

Set items are unordered, unchangeable, and do not allow duplicate values.

Set items are unordered, unchangeable, and do not allow duplicate values.

Learn data analytics

Learn data analytics