Python - Function Keyword Arguments and Arbitrary Arguments - *args and **kwargs Code Example

Published: 01 October 2021
on channel: Appficial
1,769
15

keyword arguments - maps arguments to parameters by name, rather than their position in the function call argument list.

default parameter value - a default value given to an argument if it’s omitted from function call argument list.

*args - a function definition parameter that allows the function to collect optional positional parameters into an arbitrary argument list tuple.

**kwargs - a function definition parameter, added at the end, that creates a dictionary of additional keyword arguments not defined in the function definition.

Subscribe to Appficial for more programming videos coming soon. Also, don't forget to click LIKE and comment on the video if it helped you out!


On this page of the site you can watch the video online Python - Function Keyword Arguments and Arbitrary Arguments - *args and **kwargs Code Example with a duration of hours minute second in good quality, which was uploaded by the user Appficial 01 October 2021, share the link with friends and acquaintances, this video has already been watched 1,769 times on youtube and it was liked by 15 viewers. Enjoy your viewing!