Quiz 7

This quiz was about making a function that receive two lists of numbers and returns the dot product of the two lists.

What does it means? For example if your input is: [1,2,3,4] and [5,6,7,8], the answer will be 70. Why? Because (1*5)+(2*6)+(3*7)+(4*8) = 70

It wasn´t necessary to add the Not-a-number value because since the begging it ask to the user how many numbers does he wants on his lists.

You can see the code here: Dot Product.

Also I attach some pictures of the program working.

quiz7aquiz7b

 

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