We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30d8dad commit f106900Copy full SHA for f106900
solutions/python/sum-of-array-plus-one.py
@@ -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