I created a variable called openList using the following code:
openList = []
I am going to be adding integers to this variable using .append(). There will be times when I need to retrieve the smallest integer in the variable. Is there an easy, one-step way to get that, or do I just need to iterate through them and compare them to one another?
I just checked the python reference and looked up the min function, it doesn’t mention a way to get the index of the lowest value as the return, so I guess there isn’t one. Oh well.