Skip to content

Commit f106900

Browse files
committed
Added solution to sum-of-array-plus-one in python
1 parent 30d8dad commit f106900

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
def plusOneSum(arr):
2+
"""returns the sum of the integers after adding 1 to each element"""
3+
return sum(arr)+len(arr)

0 commit comments

Comments
 (0)