def normalize_to_range(
    values,
    minimum = 0.0,
    maximum = 1.0
    ):

    """
    This function normalizes values of a list to a specified range and returns
    the original object if the values are not of the types integer or float.
    """

    normalized_values = []
    minimum_value = min(values)
    maximum_value = max(values)
    for value in values:
        numerator = value - minimum_value
        denominator = maximum_value - minimum_value
        value_normalized = (maximum - minimum) * numerator/denominator + minimum
        normalized_values.append(value_normalized)
    return normalized_values
def normalize_to_range ( values , minimum = 0.0 , maximum = 1.0 ) : normalized_values = [ ] minimum_value = min ( values ) maximum_value = max ( values ) for value in values : numerator = value - minimum_value denominator = maximum_value - minimum_value value_normalized = ( maximum - minimum ) * numerator / denominator + minimum normalized_values . append ( value_normalized ) return normalized_values
This function normalizes values of a list to a specified range and returns
    the original object if the values are not of the types integer or float.