> For the complete documentation index, see [llms.txt](https://r24zeng.gitbook.io/leetcode-notebook/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://r24zeng.gitbook.io/leetcode-notebook/useful-knowledge-about-python/dictionary.md).

# Dictionary

```python
dic = {'a': '123', 'b': '456'}
dic.clear()
dic.keys()
dic.items()
del dic['a']
del dic

for key in dic:
    print(dic[key])
    
for k, v in dic.items():
    print(k, v)
```
