Skip to content

Commit f7aa0e1

Browse files
committed
Add new file
1 parent 444bc90 commit f7aa0e1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

sum2.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
def sum2(array):
2+
z = sorted(array)
3+
a = z[0] + z[1]
4+
return a
5+
6+
print sum2([21, 12, 15, 6, 9])

0 commit comments

Comments
 (0)