Question: Please use clear handwriting and use Python. Thank you! Given a list of integers L, a number A, and an integer k, find k consecutive
Please use clear handwriting and use Python. Thank you!

Given a list of integers L, a number A, and an integer k, find k consecutive numbers in L that add up to A. Explain or describe your solution in English. Examples: - Input: L=[10,5,20,8],A=25,k=2. Output: [5,20] - Input: L=[10,5,20,8],A=35,k=3. Output: [10,5,20] - Input: L=[10,5,20,8],A=35,k=2. Output: None ANSWER: tba defprob2(L,A,k) : pass
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
