textstat/resources/TextStat.py
def dotProduct(vector1, vector2):
   """Returns the dot product of two vectors."""
   if len(vector1) == len(vector2):
      return sum((vector1[i] * vector2[i] for i in range(len(vector1))))
   return None
Returns the dot product of two vectors.
Returns the dot product of two vectors.
Returns the dot product of two vectors .
def dotProduct(vector1, vector2):
   if len(vector1) == len(vector2):
      return sum((vector1[i] * vector2[i] for i in range(len(vector1))))
   return None
def dotProduct ( vector1 , vector2 ) : if len ( vector1 ) == len ( vector2 ) : return sum ( ( vector1 [ i ] * vector2 [ i ] for i in range ( len ( vector1 ) ) ) ) return None
Returns the dot product of two vectors.
Returns the dot product of two vectors .
"""Returns the dot product of two vectors."""
vector1
vector2