Skip to content

Commit 1e1782c

Browse files
authored
Added arguments and parameters
1 parent e659d86 commit 1e1782c

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Argument vs Parameter
2+
"""
3+
A parameter is the variable listed inside the parentheses in the function definition.
4+
5+
An argument is the value that are sent to the function when it is called.
6+
"""
7+
def userDetails(name, age): # name, age are examples for parameters
8+
print(name)
9+
print(age)
10+
11+
12+
userDetails('gunasekhar', 23) # this is example for arguments
13+
# arguments is also called as call, invoke
14+

0 commit comments

Comments
 (0)