human
calculate dot product of two vectors in 2D.
assistant
Here is a Python function to calculate the dot product of two vectors in 2d

import numpy as np

def dot_product(v1, v2):
    """Calculate dot product of two vectors in 2D."""
    return v1[0]*v2[0] + v1[1]*v2[1]

# Enter the vectors
v1 = [1, 2]
v2 = [3, 4]

# Calling the function
print((dot_product(v1, v2)))

#Example Output
# 11

#Remember to inspect code for bugs.