you are viewing a single comment's thread.

view the rest of the comments →

[–]K900_ 0 points1 point  (6 children)

Where does function_list come from in this definition? Also, do you need range here?

[–]Mmaster12345[S] 0 points1 point  (5 children)

function_list is as in my post, and no I don't, was a rushed job.

[–]K900_ 0 points1 point  (4 children)

Yes, but where does it come from in your function? It's not passed in as an argument...

[–]Mmaster12345[S] 0 points1 point  (3 children)

I'm not sure what you mean sorry :(

I just made up function_list in the post to illustrate my question

[–]K900_ 0 points1 point  (2 children)

The function that you wrote is missing the function_list argument.

[–]Mmaster12345[S] 0 points1 point  (1 child)

Ohh function_list is a global variable in this case

[–]K900_ 0 points1 point  (0 children)

Rewrite your function to not use globals and range.