File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ def function_name( parameters ):
55 executable statements
66 return
77
8- 2. A function is called by simply writing the function name followed by parebthesis . Syntax:
8+ 2. A function is called by simply writing the function name followed by parenthesis . Syntax:
99 function_name (passed_arguments)
1010"""
1111
@@ -25,7 +25,7 @@ def add(x,y):
2525print (" 2 + 3 =" ,ans )
2626
2727
28- # A function that can catch unknown number of arguments and store it in form of a list
28+ # A function that can catch unknown number of arguments and store it in form of a tuple
2929def many_args (* args ):
3030 for i in args :
3131 print (i )
@@ -44,4 +44,4 @@ def example (name = "codex"):
4444def example2 ( name , year ):
4545 print ("Name is: " ,name )
4646 print ("Year is: " ,year )
47- example2 ( year = 2017 ,name = "CODEX" ) # here the arguments are passed out of order but still it will catch perfectly as keywords are used
47+ example2 ( year = 2017 ,name = "CODEX" ) # here the arguments are passed out of order but still it will catch perfectly as keywords are used
You can’t perform that action at this time.
0 commit comments