Lists can contain duplicates but sets cannot
Sets are unordered and sets can contain only hashable objects, while lists can contain any kind of object or data type.
Indexing is possible in Lists while not in sets.
Sets allow to perform operations related to set theory like union, intersection, difference etc.
Sets are written in { } (using curly brackets)
Lists are defined as [ ] (using square brackets)
items = {'table','chair','desk'}
items
Output
{'chair', 'desk', 'table'}
type(items)
Output
set
items = ['table','chair','desk']
items
Output
['table', 'chair', 'desk']
type(items)
Output
list