Okay so to start off. I have a list of tuples that have a user and then a list of their book ratings as the second item. For example:
[('Ben', [5, 0, 0, 0, 0, 0, 0, 1, 0, 1, -3, 5, 0, 0, 0, 5, 5, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 0, 1, 3, 0, 1, 0, -5, 0, 0, 5, 5, 0, 5, 5, 5, 0, 5, 5, 0, 0, 0, 5, 5, 5, 5, -5]),
('Moose', [5, 5, 0, 0, 0, 0, 3, 0, 0, 1, 0, 5, 3, 0, 5, 0, 3, 3, 5, 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 3, 5, 0, 0, 0, 0, 0, 5, -3, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 5, 5, 0, 3, 0, 0])]
That's just for the first two things in the list. Okay so their is a total of 86 users and their ratings in the list. I need to figure out how to be able to multiply all of Ben's ratings times all of Mooses' ratings and then add them all together. For example Ben's first rating is 5 and Moose' first rating is 5 so I do 5x5 and then add that to the list of similarity scores. My problem is that I don't know how to multiply all the elements of the rating list times the rating list of the inputted user. So I need to basically, prompt for a username and then multiply all the other users ratings by the chosen user and output the highest similarity score. Any help at all is appreciated as I am stuck in a rut, thanks in advance.