Asked • 04/07/19

What is the purpose and use of **kwargs?

What are the uses for `**kwargs` in Python? I know you can do an `objects.filter` on a table and pass in a `**kwargs` argument. Can I also do this for specifying time deltas i.e. `timedelta(hours = time1)`? How exactly does it work? Is it classes as 'unpacking'? Like `a,b=1,2`?

1 Expert Answer

By:

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.