Question: what is the difference between list and set in python?
Answer: A set is a collection which is unordered and unindexed, and doesnt allow duplicates. In Python, sets are written with curly brackets. A list is a collection which is ordered and changeable. In Python lists are written with square brackets.