What is decorator in pythonAs a developer best way to write code within a function or class. but what if our code enter in function and return exception error. Decorator is function which validate the passing parameter in function. if parameter is valid then code enter in the ...1 min read·jaypratap.hashnode.devSep 1, 2021
Difference between *args and **kwargs in pythonIn any programming language we make a function to perform certain task. Sometimes we don’t know how many arguments will come from user sites, In that case we use *args. def function_args(*args): for i in args: print(i) call function with ...1 min read·jaypratap.hashnode.devJan 17, 2021