I read that list takes O(n) for searching where as set takes O(1).
1)I don't understand why searching takes different time even though they are containing multiple elements.
2)why using set rather than a list makes big difference? What makes the difference between python list and python set especially while searching.
3)which is better to use list or python considering memory and time