Python
Python
Bloom’s Apply
Taxonomy
Theory/ Steps/ -Default Atguments
Algorithm/
Procedure: -Variable length arguments
Positional arguments
These are the arguments passed to a function in correct positional order. Here the
number of arguments and their positions in the funtction definition should match
exactly with the number of arguments and their positions in the funtction call.
Keyword Argument
These are those arguments that identify the parameters by their names.
# function call
Default Arguments
We can mention some default value for the function parameters in the definition.
Hint:
Items = {
OUTPUT :
2. Write a program using functions in Python to find a GCD of a number.
OUTPUT :
3. Write a program to represent Item’s ID as a key using dictionary.
Make a list of details of item as its multiple values.
Hint:
Items = {
“Butter” : [350, 50],
“Jam” : [400, 15]
}
Write a program using functions in python for following requirements:
- Adding keys into dictionary
- Removing keys from dictionary
- Updating keys into dictionary
- Display the values of list by accessing its key
- Add item details into list.
OUTPUT :
5. Design your own application based on any domain having minimum 05 Functions.
OUTPUT :
Conclusion: Thus we have successfully understand and implemented basic commands in python