编写一个Python函数来计算两个向量的点积。


向量1: [1, 2, 3]，向量2: [4, 5, 6]
```python
def dot_product(vector1, vector2):
    """计算两个向量的点积"""
    return sum(i * j for i, j in zip(vector1, vector2))

vector1 = [1, 2, 3]
vector2 = [4, 5, 6]
result = dot_product(vector1, vector2)
print(result)
```
输出结果：32