{' '' ' false { * for in [ ]{ superset set comprehensions in and even less mathematically inclined programmers often find sets useful for common tasks such as filtering out duplicatesisolating differencesand performing order-neutral equality tests without sorting--in listsstringsand all other iterable objectslist(set([ ])[ set('spam'set('ham'{' '' 'set('spam'=set('asmp'true filtering out duplicates (possibly reorderedfinding differences in collections order-neutral equality tests (=is falsesets also support in membership teststhough all other collection types in python do too'pin set('spam')'pin 'spam''hamin ['eggs''spam''ham'(truetruetruein additionpython recently grew few new numeric typesdecimal numberswhich are fixed-precision floating-point numbersand fraction numberswhich are rational numbers with both numerator and denominator both can be used to work around the limitations and inherent inaccuracies of floating-point math ( / ( / floating-point (add in python ximport decimal decimal decimal(' ' decimal(' 'decimalsfixed precision decimal getcontext(prec decimal decimal(' 'decimal decimal(' 'decimal(' 'from fractions import fraction fraction( fraction( fraction( fraction( fractionsnumerator+denominator python also comes with booleans (with predefined true and false objects that are essentially just the integers and with custom display logic)and it has long supported special placeholder object called none commonly used to initialize names and objectsother core types