Fixed bugs

This commit is contained in:
danielwilczak101
2020-09-21 02:20:25 -04:00
parent 85ba32803f
commit 358d93dfa4
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ class chromosome:
def print_chromosome(self):
for i in range(len(self.genes)):
# Print the gene one by one.
if(i == len(self.genes)):
if(i == len(self.genes) - 1):
print(f"[{self.genes[i].get_value()}]", end = '')
else:
print(f"[{self.genes[i].get_value()}],", end = '')