values = [4, 7, 10, 5, 3]
max_values = max(values)
print (max_values)
index = values.index(10)
print (index)
weights = [15, 8, 2, 6, 12 ]
print (weights.index (2))
print (f'The weight corresponding the maximum value is 2')
n= len(weight)
for n in index :
for x in values :
for y in weights :print (f'Choose item number { } with index {i}, value = {x} and weight = {y}')
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