Create a function in Python for computing the dot product of two given vectors.
def dotProduct(vector1, vector2): 
    dotProd = 0
    for i in range(len(vector1)):
        dotProd += vector1[i] * vector2[i]
    return dotProd