Quiz 7

This function called dot_product 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

quiz7-1quiz7-2

CC BY-SA 4.0 Quiz 7 by ferespib is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.