Skip to content

den01-python-programming/exercise-3-15-sum

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Exercise 3.15 Sum

Create the method def sum_list(numbers) in the exercise template. The method is to return the sum of the numbers in the parameter list.

numbers = []
numbers.append(3)
numbers.append(2)
numbers.append(6)
numbers.append(-1)
print(sum_list(numbers))

numbers.append(5)
numbers.append(1)
print(sum_list(numbers))
10
16

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages