A simple explanation of Python function arguments, keywords, *args, and **kwargs

Опубликовано: 16 Январь 2025
на канале: Sebastiaan Mathôt
12,182
190

Check out the entire playlist with Python lectures!    • Python lectures  

This is a simple explanation of how you can pass arguments to functions in Python. It covers:

arguments (without default value)
keywords (with default value)
argument lists or *args (an arbitrary number of arguments captured into a list)
keyword dictionaries or **kwargs (an arbitrary number of keywords captured into a dict)