What are args and kwargs in Python?



What are args and kwargs in Python?..

Answer / nashiinformaticssolutions

`args` allows passing a variable number of non-keyword arguments, while `kwargs` allows passing a variable number of keyword arguments.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Python Interview Questions

How do you implement json given that python is best suited for the server-side application?

0 Answers  


How do I generate random numbers in python?

0 Answers  


Why do lambda forms in python not have the statements?

0 Answers  


Explain the difference between `@staticmethod` and `@classmethod`.

1 Answers  


Why we are using a python dictionary?

0 Answers  






How do I interface to c++ objects from python?

0 Answers  


What is the purpose of not in operator?

0 Answers  


Does xrange work python 3?

0 Answers  


What is python encapsulation?

0 Answers  


Is python is a case sensitive?

0 Answers  


What is py4j?

0 Answers  


Define encapsulation in python?

0 Answers  


Categories