12 Apr Admin
A set is a collection which is unordered and unindexed. In Python sets are written with curly brackets.
Sets are unordered, so you cannot be sure in which order the items will appear.
Example–
theset = {“bus”, “car”, “aeroplane”}
print(theset)
Output–
{‘aeroplane’, ‘bus’, ‘car’}