Question: # Fix the function below to return the index of the minimum value in the list nums # or -1 if there aren't any values

 # Fix the function below to return the index of the

# Fix the function below to return the index of the minimum value in the list nums # or -1 if there aren't any values in the list. If minumum value appears more than # once in the list you should return the index of the first one def get_index_min(nums): # init the min and min_index min = 0 min_index = 0 # loop through the list for index in range(nums): # get the current value current = nums[index] # if new min if current

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!