In Python, key word arguments are simply the named arguments passed to a function. For example,
```python
def my_func(fname='Bob', lname='Smith'):
print(f'{fname} {lname}')
my_func('Bob', 'Smith')
>>> Bob Smith
```
[[PEP8]] specifies no spaces around the equal sign when specifying key word arguments.
When you have a dictionary that contains all parameter names as keys, you can simply pass the dictionary to the function prepended by double asterisks (`**`).
```python
name_dict = {'fname': 'John', 'lname': 'Doe'}
my_func(**name_dict)
>>> John Doe
```
If you simply want to expand a list to pass as arguments use `*`.
#rough #codesample