Write a function to convert any number to its equivalent fractions.


Topic: Write a function to convert any number to its equivalent fractions.

Solution

def no_to_fraction(no_):
    from fractions import Fractions
    return Fractions(no_)



List all Python Programs