import numpy as np
# Create a random vector of size 10
vec = np.random.uniform(low=0, high=1, size=10)
print('Array: ',vec)
# Find the index of the maximum value
max_index = np.argsort(vec)[-1]
# Replace the maximum value by 0
vec[max_index] = 0
print('Final_Array: ',vec)