Skip to content

Commit 0128f5a

Browse files
committed
more efficient coding examples
1 parent 9295014 commit 0128f5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

034_summarising.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454

5555
# Add up all the numbers in the list
5656
def add_up_numbers(numbers):
57-
pass
57+
return sum(numbers)
5858

5959
check_that_these_are_equal(
6060
add_up_numbers([1, 2, 3, 4]), 10)

0 commit comments

Comments
 (0)