fraction( finallysome type mixing is allowed in expressionsthough fraction must sometimes be manually propagated to retain accuracy study the following interaction to see how this worksx fraction( fraction( ( / ( / fraction( fraction( fraction int -fraction fraction float -float fraction float -float fraction fraction -fraction caveatalthough you can convert from floating point to fractionin some cases there is an unavoidable precision loss when you do sobecause the number is inaccurate in its original floating-point form when neededyou can simplify such results by limiting the maximum denominator value ( as_integer_ratio(( precision loss from float fraction( fraction(*( as_integer_ratio() fraction( (or close to it! limit_denominator( fraction( simplify to closest fraction for more details on the fraction typeexperiment further on your own and consult the python and library manuals and other documentation sets besides decimalspython also introduced new collection typethe set--an unordered collection of unique and immutable objects that supports operations corresponding to mathematical set theory by definitionan item appears only once in setno matter how many times it is added accordinglysets have variety of applicationsespecially in numeric and database-focused work other numeric types