I am required to use the sum() function in order to sum the values in a list. Please note that this is DISTINCT from using a for loop to add the nu
sum()
for
In the last answer, you don't need to make a list from numbers; it is already a list:
numbers = [1, 2, 3] numsum = sum(numbers) print(numsum)