Skip to content

Commit 4f701b7

Browse files
committed
function_with_arguments.py
1 parent 4ca593d commit 4f701b7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

function_with_arguments.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
def greet(name):
2+
print(f"Hi,{name}")
3+
print("Are you from cs Department?")
4+
greet("Amrata")
5+
6+
def add(a,b):#parameter or formal parameter
7+
c=a+b
8+
print(f"sum is {c}")
9+
add(5,7)#Argument or actual parameter
10+
add(8,-9)

0 commit comments

Comments
 (0)