What is the pythonic way to calculate dot product? http://docs.scipy.org/doc/numpy/reference/ If you want to do it without numpy, try