DAY 11 (CODE INFINITY)

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. 

4. Required Arguments: In this we need to pass the arguments in the correct order and number of arguments passed should match with the defined function.

One more statements is there called return statement which used to return the value of the expression back to the calling function.

I know we are doing so much theory theory we need to understand that this is important topic and we need to memorize the meaning of every keyword today I only show you code in the screenshot and providing repel not writing it here because i want you all to see it from repel because there I have written everything in  detail and you will understand better there.

Screenshot of the repel:


Link of repel:
https://replit.com/@shwetaantil97/-Function-Arguments



                       

Comments

Lusia said…
⭐✨💫🌟👍❤️

Popular posts from this blog