Q04 Python Question - 1% of final grade - Due July 10, 2022 Write a Python function that takes a list of numbers and ret
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Q04 Python Question - 1% of final grade - Due July 10, 2022 Write a Python function that takes a list of numbers and ret
Question - 1% of final grade - Due July 10, 2022 Write a Python function that takes a list of numbers and returns a list of cumulative sums of the numbers in the input list. That is, each of the number in the returned list will be the sum of all the previous numbers plus the current number. For example, the input list [2, 2, 5, 4, 6] will return the list [2, 4, 9, 13, 19]. def getCumulativeSum (inputList):
Q04 Python