Does Python have a function to reduce fractions? Does Python have a function to reduce fractions? numpy numpy