> For the complete documentation index, see [llms.txt](https://lauradang.gitbook.io/notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://lauradang.gitbook.io/notes/python/object-oriented-programming/args-and-kwargs.md).

# Args And Kwargs

Args returns a tuple while kwargs returns a dict

```python
def hello(*args, **kwargs):
  print(args)
  print(kwargs)

hello("L", greeting="Hi")

>> ("L", )
>> {'greeting':"Hi"}
```

```python
def hello(*args, **kwargs):
    gretting = kwargs.pop('greeting', 'Hello')
    
    print(f"""{gretting} {' '.join(args)}!""")


>> hello("Laura", "Dang", gretting="Hi")

# returns `Hi Laura Dang!`.

```
