Part 1. Definition
In this task you will be given a list, of lists, of integers. For every inner list contained in the input list, you should multiply every odd number in that list. The output should be a list of integers with the same length as the number of lists in the input list. If there are no odd numbers in an inner list you should output 0 for that list.
Part 2. Example
[[4, 4, 12, -6], [-9, 5, -6, -1], [8, 3, 9, -5, 1]]
Answer: [0, 45, -135]
Explanation: The first inner list has no odd integers, so the first number in the output is 0. The second list has -9, 5, -1 for odd integers so the second output is 45. The third list has 3, 9, -5, 1 as even numbers so the third output is -135. This is a good example.
Part 3. Exercise
[[-42, 17], [-2, -20, -8], [49, 34, 1, 37, 36]]
Answer:
[17, 0, 1813]