0

I have a function: run_simulation(probI) and I have created a loop to iterate this function for different values of one of its arguments. I assigned the outcome of the loop to a list and while loop works as expected, the list only returns none values:

enter image description here

Do you know how to make this work?

here's the code:

y = []

for probI in np.logspace(-3,0,12):
    y.append(run_simulation(probI=probI))
SosaAlmighty
  • 257
  • 2
  • 3
  • 10

0 Answers0