def userinput(message):
    """Asks the user for a float value and manages exceptions

    Args:
        message (string): Message displayed when prompting the user

    Returns:
        float: Number chosen by the user
    """
    while True:
       
        try:
            inner = float(input(message))
            return inner
        except ValueError:
            print("Not a number")