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 ...Sep 1, 2021 · 1 min readjaypratap.hashnode.dev
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 ...Jan 17, 2021 · 1 min readjaypratap.hashnode.dev