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!


Watch video Python - Function Keyword Arguments and Arbitrary Arguments - *args and **kwargs Code Example online without registration, duration hours minute second in high quality. This video was added by user Appficial 01 October 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 1,76 once and liked it 1 people.