Question: Produce Python code that prompts for and inputs two lists of numbers. It prints out a list where the element at any index i is
Produce Python code that prompts for and inputs two lists of numbers. It prints out a list where the element at any index i is the sum of the elements at index i of the two input lists. If the input lists are of different lengths, have the length of the output list be the length of the shorter of the two. Use a for loop. Note that, where x and y are numbers, min(x,y) is the smaller of those two numbers. For example, if the two input lists are [2, 4, 3] and [1, 7, 2, 5], then the resulting list will be [3, 11, 5].
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
