import numpy as np
# Create a random vector of size 10
vec = np.arange(10)
print("Array: ",vec)
# Find the index of the maximum value
max_index = np.argmax(vec)
# Replace the maximum value by 0
vec[max_index] = 0
print('Final_Array: ',vec)