"""
Python fractions



"""

import fractions

print(fractions.Fraction(0.5))

print(fractions.Fraction(1))

print(fractions.Fraction(1.5))

print(fractions.Fraction(1, 3))

print(fractions.Fraction(5, 1))

# 1.1 float number
print(fractions.Fraction(1.1))
print(2476979795053773/2251799813685248)

# 11/10
print(fractions.Fraction('1.1'))

print(fractions.Fraction('1.13'))

