miscellaneous topics iii { , , , , recall that curly braces are also used to denote dictionariesand {is the empty dictionary to get the empty setuse the set function with no argumentslike thiss set(this set function can also be used to convert things to sets here are two examplesset([ , , , , , , , , ]set'this is test '{ 'aeihst notice that python will store the data in set in whatever order it wants tonot necessarily the order you specify it' the data in the set that mattersnot the order of the data this means that indexing has no meaning for sets you can' do [ ]for instance working with sets there are few operators that work with sets operator description example union { , , { , { , , , intersection { , , { , { difference { , , { , { , symmetric difference { , , { , { , , in is an element of in { , , true the symmetric difference of two sets gives the elements that are in one or the other setbut not both here are some useful methodsmethod description add(xadd to the set remove(xremove from the set issubset(areturns true if and false otherwise issuperset(areturns true if and false otherwise finallywe can do set comprehensions just like list comprehensionss { ** for in range( ){ set comprehensions are not present in python exampleremoving repeated elements from lists we can use the fact that set can have no repeats to remove all repeats from list here is an example