Python indentation issue?
python
Solution
All of those methods that consist of just a comment.
To fix it, for example, do this
def twoPointCrossover(self, partner):
#at two random(?) points, crossover.
pass
The comments don't count as compilable statements, so you have a bunch of empty blocks. That is why it gives you the indent error.
Problem
I'm pretty new to python. This is my first time working with classes in python. When I try to run this script, I get IndentationError: expected an indented block What is wrong with this? ``` import random class Individual: alleles = (0,1) length = 5 string = "" def __init__(self): #some constructor work, here. def evaluate(self): #some stuff here. def mutate(self, gene): #mutate the given gene. def onePointCrossover(self, partner): #at some random point, crossover. def twoPointCrossover(self, partner): #at two random(?) points, crossover. class World: def __init__(self): #stuff. def buildPopulation(self): #stuff. for individual in self.population(): for i in range(0, individual.length): print random.random() def display(self): #print some output stuff. if __name__ == '__main__': print "hi there" ```