Is the only difference between sets and lists in Python the fact that you can use the union, intersect, difference, symmetric difference functions to compare two sets? Why c
Set
A set is a collection which is unordered and unindexed, and doesnt allow duplicates. In Python, sets are written with curly brackets.
# example set
newset = {"one", "two", "three"}
List
A list is a collection which is ordered and changeable. In Python lists are written with square brackets.
# example list
newlist =["one", "two", "three"]