def fitness_calculator(genome):
 assert isinstance(genome, MutableSeq), 'Expected MutableSeq for a genome.'
 regular_seq = genome.toseq()
 return int(str(regular_seq))

def fitness_calculator ( genome ) : assert isinstance ( genome , MutableSeq ) , 'Expected MutableSeq for a genome.' regular_seq = genome . toseq ( ) return int ( str ( regular_seq ) )
calculate fitness for testing purposes .