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