for example have code error says:
typeerror: 'function' object not iterable
my code:
def initialpopulation(numberofanimals, length): pop = [] in xrange(numberofanimals): pop.append(individual(length)) return pop graded=[zip(oneanimalsearch(radius,listsum(x),turnnum,alloteddistance,foodcutoff,foodlist ),x) x in initialpopulation]
Comments
Post a Comment