Today we continue our functions topic in which we start function arguments .There are four types of arguments that we provide in functions:
1. Default Arguments: In this we can provide a default value while creating the function by this function assumes a default value even if a value is not provided in the function call for that argument.
2. Keyword Arguments: We can provide arguments with key= value , this way interpreter recognizes the arguments by the parameter name.
3.Variable Length Arguments: We may need to pass more arguments than those defined in function for that we use this argument which have two types:
(a)Arbitrary Arguments: A * before parameter name while defining the function this way function accesses the arguments by processing them in form of tuples.
(b) Keyword Arbitrary Arguments: This function accesses the arguments by processing them in form of dictionary.
![]() |
Link of repel:
Comments