Skip to content

Instantly share code, notes, and snippets.

Created Feb 24, 2017
What would you like to do?
from random import choice
def escolher():
a = choice([[10.00,90.00,30.00,40.00],[50.00,60.00,90.00,80.00]])
fitness_1_temp = 0
for i in a:
fitness_1_temp = (fitness_1_temp+i) if i <= 85.0 else (fitness_1_temp-i)
return fitness_1_temp
print (escolher())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment