from fractions import Fraction print(f"{Fraction('6_024/1_729') = !s}")