def get_number(prompt):
    """Prompts the user for a floating point number and continues prompting until a valid input is given."""
    while True:
        user_input = input(prompt)
        try:
            return float(user_input)
        except ValueError:
            print("You need to provide a valid number")