difference between set and list in python

'''
In python, a list is a collection of values in a specific order.
There can be several times the same value
[4,8,9,5,4,1,3,4] is a valid list in python

In a set, all values has to be unique.
It is better to use sets compared to lists as much as possible,
because of its speed to retrieve data and space memory economy.
Diferent methods are available for sets and lists.
I will let you discover them on this well-done website : 
https://www.datacamp.com/community/tutorials/sets-in-python
'''

Here is what the above code is Doing:
1. We create a list of integers from 1 to 10.
2. We create a set from the list.
3. We print the set.
4. We print the type of the set.
5. We print the type of the list.