sort and remove duplicates list python

myList = sorted(set(myList))

Here is what the above code is Doing:
1. We create a list called myList.
2. We add some items to myList.
3. We convert myList to a set.
4. We convert the set back to a list.
5. We sort the list.
6. We print the list.