How do I multiply every element of one list with every element of another list in Python and then sum the result of the multiplying results variations?

```
list_1 = [0, 1, 2, 3, 4, 5]

list_2 = [11, 23, m]

```

Where m element in the list\_2 can be any number while the length of the elements in the list is entered with the input. So basically that list contains minimum of 2 elements and can go to up to 12 based on the user requirements.

What I am looking for is a function/algorithm which will allow the following list of the results.:

0\*11 + 0\*23 +..+ 0\*m

1\*11 + 0\*23 +..+ 0\*m

2\*11 + 0\*23 +..+ 0\*m

..

3\*11 + 2\*23 + .. + 5\*m

..

5\*11 + 5\*23 +..+ 5\*m