Post

Real Python
Real Python@realpython·
🐍📺 In this course, you'll learn how to use args and kwargs in Python to add more flexibility to your functions. You'll also take a closer look at the single and double-asterisk unpacking operators. #python realpython.com/courses/python…
English
1
2
7
2K
Jim Dennis
Jim Dennis@answrguy·
@realpython First clarify the distinction between formal parameters (definition) and arguments (invocation). Then think of parameters as keys into a dictionary of arguments, def(*args) as a tuple within that, and def(**kwargs) as a nested dictionary. For invocation *args is apply() and **
English
1
0
1
22
Paylaş