values = [ 4, 7, 10, 5, 3]
maximumval = max(values)
print(maximumval)
location = values.index(maximumval)
print(location)
print(values[2])
weights = [15, 8, 2, 6, 12 ]
print(weights[location])
print (f'Choose item number {3} with index {location}, value = {values[location]} and weight = {weights[location]}')
#
# set value to zero so we don't find it again
(values[location]) == 0
#Confused on why this doesn't set the value eqal to 0.
print(values[2])
print (f'Choose item number {3} with index {location}, value = {values[location]} and weight = {weights[location]}')
values = [ 4, 7, 10, 5, 3] # we need to reload these lists because we modified them
weights = [15, 8, 2, 6, 12 ] # in loop above