Skip to content

Commit 1ced3b5

Browse files
committed
print_return.py
1 parent e4a6fde commit 1ced3b5

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

print_return.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
def func1(a,b):
2+
c=a+b
3+
print(c)
4+
output1=func1(5,2)
5+
print(output1)
6+
7+
def func2(a,b):
8+
c=a+b
9+
return c
10+
output2=func2(3,4)
11+
func1(output2,0)
12+
print(output2)
13+
14+
def func3(x):
15+
return x+1
16+
def func4(a,b):
17+
c=a+b
18+
return c
19+
output3=func4(3,4)
20+
final_output=func3(output3)
21+
print(final_output)

0 commit comments

Comments
 (0)