"""
module: fractions

"""

import fractions

# ex1. to represent a fraction
n = fractions.Fraction(1.5)
print(n)


# ex2.
n = fractions.Fraction(5)
print(n)


# ex3.
n = fractions.Fraction(1,3)
print(n)


# ex4.
n = fractions.Fraction(3,2)
print(n)
