repl.it
@anonymous/

ShinyEvilFluke

Python 2.7

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
def reproportion_pop(start_pop, pop_goal):
 import operator
 reduced = reduce(operator.mul, start_pop)
 new_pop = []
 for x in range(len(start_pop)):
  new_pop.append(reduced*pop_goal[x])
 return new_pop