Skip to content

Commit 165df62

Browse files
authored
Update sum function to return sum of two numbers
Refactor sum function to return the sum instead of printing it.
1 parent 2c15b8c commit 165df62

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sum.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#two number sum
2+
def sum(a:int,b:int):
3+
return a+b

0 commit comments

Comments
 (0)