#QUIZ 07

INSTRUCCIONES

Create a function called dot_product that receives two lists of numbers (say list1 and
list2). The function returns what is the dot product of the two lists.

For full marks, if the lists are not the same size, then the function should return the
special value of NaN (which represents not a number).

Example. If the input is [2,4,5,6] and [1,2,3,4] the result will be 49 since (2*1)+(4*2)+(5*3)+(6*4) = 49

2016-04-26 (4)

CC BY-SA 4.0 #QUIZ 07 by valeriananc is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.