human
Give me a Python program to get variance of vectors.
assistant
Here is a Python program to get variance of vectors

import numpy as np

def get_variance(vector):
    """Return the variance of a vector"""
    return np.var(vector)

# Enter the vector
vector = np.array([1, 2, 3, 4, 5])

# Calling the function
variance = get_variance(vector)

# Printing the result
print(variance)

#Example Output
# 2.0

#Remember to inspect code for bugs.