def fill_opacity(opacity: float):
    """
    Returns an SVG fill opacity using the given value between 0
    and 1, where 0 means fully transparent and 1 is fully opaque.

    :param opacity: `float` opacity value
    :return: fill-opacity="<opacity>"
    """
    return f'fill-opacity="{str(opacity)}"'