def mutation(population, degenList):
    """Apply mutation to a population"""
    p = list(population)
    for d in degenList:
        x = population[d.original] * d.rate
        p[d.original] -= x
        p[d.mutated] += x
    return tuple(p)