Answers for "how to add two numbers in kwargs function"

2

use of kwargs and args in python classes

def myFun(*args,**kwargs): 
    print("args: ", args) 
    print("kwargs: ", kwargs) 
    
myFun('my','name','is Maheep',firstname="Maheep",lastname="Chaudhary")

# *args - take the any number of argument as values from the user 
# **kwargs - take any number of arguments as key as keywords with 
# value associated with them
Posted by: Guest on December-10-2020

Code answers related to "how to add two numbers in kwargs function"

Python Answers by Framework

Browse Popular Code Answers by Language