from fractions import Fraction
f = Fraction(723520/51680)
print('str(f) =', f)
print('repr(f) =', repr(f))
# Acessando numerador e denominador
print('Numerador:', f.numerator)
print('Denominador:', f.denominator)
ZnJvbSBmcmFjdGlvbnMgaW1wb3J0IEZyYWN0aW9uCgpmID0gRnJhY3Rpb24oNzIzNTIwLzUxNjgwKQoKcHJpbnQoJ3N0cihmKSA9JywgZikKcHJpbnQoJ3JlcHIoZikgPScsIHJlcHIoZikpCgojIEFjZXNzYW5kbyBudW1lcmFkb3IgZSBkZW5vbWluYWRvcgoKcHJpbnQoJ051bWVyYWRvcjonLCBmLm51bWVyYXRvcikKcHJpbnQoJ0Rlbm9taW5hZG9yOicsIGYuZGVub21pbmF0b3Ip