Cleaned up spacing

This commit is contained in:
SimpleArt
2020-11-26 21:30:49 -05:00
parent 33f74c4019
commit 1ba86c0661
10 changed files with 152 additions and 111 deletions

View File

@ -150,7 +150,7 @@ class Population:
to get a backend representation of the population.
"""
return ''.join(
f'Chromosome - {index} {chromosome} ' +
f'/ Fitness = {chromosome.fitness}\n'
for index, chromosome in enumerate(self)
f'Chromosome - {index} {chromosome} / Fitness = {chromosome.fitness}\n'
for index, chromosome
in enumerate(self)
)