Accepting arbitrary keyword arguments in Python

Published: 16 January 2023
on channel: Python Morsels
184
11

Ever seen **kwargs in a function definition? There's nothing special about the name "kwargs": it's the ** that's special. You can use Python's ** operator to define a function that accepts arbitrary keyword arguments.

Read an article version of this video at https://pym.dev/accepting-arbitrary-k...

Find more Python screencasts at https://pym.dev/screencasts/

00:00 Passing keyword arguments to a function
00:37 Capturing arbitrary keyword arguments
02:05 Arbitrary keyword arguments within Python
02:58 Use ** to accept arbitrary keyword arguments


On this page of the site you can watch the video online Accepting arbitrary keyword arguments in Python with a duration of hours minute second in good quality, which was uploaded by the user Python Morsels 16 January 2023, share the link with friends and acquaintances, this video has already been watched 184 times on youtube and it was liked by 11 viewers. Enjoy your viewing!