# \*\*kwargs

say it: **“STAR STAR KWARGZ”** **/ˈstɑr ˈstɑr ˈkwɑrɡz/**

Lets a function accept any number of keyword arguments, collected as a dictionary.

## What does `**kwargs` do?

`**kwargs` lets a function accept any number of keyword arguments. Inside the function they arrive together as a dictionary.

```python
def make_profile(**details):
    print(details)

make_profile(name="Ana", city="Austin")
# {'name': 'Ana', 'city': 'Austin'}
```

Level: Apprentice · [More Python terms at this level](https://www.ask-codey.com/glossary?category=python&level=2)

Updated: November 17, 2026

Source: https://www.ask-codey.com/glossary/kwargs
