Lists and tuples are standard Python data types that store values in a sequence. Sets are another standard Python data type that also store values. The major difference is that sets, unlike lists or tuples, cannot have multiple occurrences of the same element and store unordered values.
myset = {"bananas", "apples", "cherries"}
mytuple = ("bananas", "apples", "cherries")
print(myset)
#outputs {'apples', 'cherries', 'bananas'}
print(mytuple)
#outputs ('bananas', 'apples', 'cherries')
myset = {2, 1, 3}
mytuple = (2, 1, 3)
print(myset)
#outputs {1, 2, 3}
print(mytuple)
#outputs (2, 1, 3)
tuple = (1,2,3,4,5,6,7,8,9, 1,2,3) # output: (1,2,3,4,5,6,7,8,9, 1,2,3) will be same
set = (1,2,3,4,5,6,7,8,9, 1,2,3) # output: (1,2,3,4,5,6,7,8,9) // removes the duplicate values