Hey guys!
Hope you are doing well! I am currently working on a project that requires me to nest my functions and to call upon different functions. One such function has three inputs, and one output.
The input varies as it progresses through a loop, which overwrites my output value (so for input 1, it will give output 1, then for input 2 it will provide me output 2, overwriting the first output). I don't want that to happen, and I want to store each output value in an array, as my function calculates the output, such that the input 1 gives me output 1, input 2 gives me output 2, and all of these output values are stored in an array.
I don't want to manually index each element, because its too cumbersome and also because the number of inputs depends on the user, which means I don't know what the index should be anyways!
Thanks in advance for any help!!!!
Best Answer