JPJay pratapinjaypratap.hashnode.dev·Sep 1, 2021 · 1 min readWhat 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 ...00
JPJay pratapinjaypratap.hashnode.dev·Jan 17, 2021 · 1 min readDifference 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 ...00