def replace_consts_with_values(s, c):
    """
    Replace the constants in a given string s with the values in a list c.
    
    :param s: A given phenotype string.
    :param c: A list of values which will replace the constants in the
    phenotype string.
    :return: The phenotype string with the constants replaced.
    """
    
    for i in range(len(c)):
        s = s.replace("c[%d]" % i, str(c[i]))
    
    return s