Skip to content

Commit 7187ada

Browse files
committed
added the differences b/w return and print keywords in the function
1 parent c4c97c8 commit 7187ada

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Day-05/reference.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
def add_numbers(a, b):
2+
sum_value = a + b
3+
print(sum_value)
4+
add_numbers(4, 6)
5+
sum_stuff = add_numbers(4,4)
6+
print(f"This is the sum_stuff result: ", {sum_stuff})
7+
8+
print("==============================================")
9+
10+
def add_numbers(a, b):
11+
sum_value = a + b
12+
return sum_value
13+
add_numbers(4, 6)
14+
sum_stuff = add_numbers(4,4)
15+
print(f"This is the sum_stuff result: ", {sum_stuff})

0 commit comments

Comments
 (0)