def ratio(leechs, seeds):
    """ computes the torrent ratio"""
    try:
        ratio = float(seeds) / float(leechs)
    except ZeroDivisionError:
        ratio = int(seeds)
    return ratio
def ratio ( leechs , seeds ) : try : ratio = float ( seeds ) / float ( leechs ) except ZeroDivisionError : ratio = int ( seeds ) return ratio
computes the torrent ratio