ga_simple.py
def calculateFitness(individual):
    """
        Calculate the fitness of a particular individual.
    """
    fitness = 0
    for i in range(len(individual)):
        if individual[i] == target[i]:
            fitness += 1

    return fitness

        Calculate the fitness of a particular individual.
    
Calculate the fitness of a particular individual.
Calculate the fitness of a particular individual .
def calculateFitness(individual):
    fitness = 0
    for i in range(len(individual)):
        if individual[i] == target[i]:
            fitness += 1
    return fitness
def calculateFitness ( individual ) : fitness = 0 for i in range ( len ( individual ) ) : if individual [ i ] == target [ i ] : fitness += 1 return fitness
Calculate the fitness of a particular individual.
Calculate the fitness of a particular individual .
"""
        Calculate the fitness of a particular individual.
    """
individual