import re


def get_converted_price(price):
    """Converts the price argument to a clean number
    
    Args:
        price (str): scrapped price
    
    Returns:
        float: converted price
    """
    # stripped_price = price.strip("€ ,")
    # replaced_price = stripped_price.replace(",", "")
    # find_dot = replaced_price.find(".")
    # to_convert_price = replaced_price[0:find_dot]
    # converted_price = int(to_convert_price)
    price = price.replace(",", ".")
    converted_price = float(re.sub(r"[^\d.]", "", price))

    return converted_price