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 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
Get step-by-step solutions from verified subject matter experts
