# Working with Dictionaries in Python

**URL:** <https://forum.dynamobim.com/t/working-with-dictionaries-in-python/43440>\
**Category:** Revit\
**Tags:** python\
**Created:** [November 21, 2019, 10:08am UTC](https://forum.dynamobim.com/t/working-with-dictionaries-in-python/43440 "2019-11-21T10:08:39Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![neel-studio4](https://avatars.discourse-cdn.com/v4/letter/n/a88e57/32.png) [@neel-studio4](https://forum.dynamobim.com/u/neel-studio4)\
**Post date:** [January 12, 2021, 7:13am UTC](https://forum.dynamobim.com/t/working-with-dictionaries-in-python/43440/6 "2021-01-12T07:13:47Z")

</div>

just as an added help ,  
to write or edit dictionaries in dynamo python u need to add the following imports

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/7/778f1ff29cf61913609e76d78bdbe42ae34dd95b.png)

```
> import sys
> import clr
> import System.Collections.Generic
> Dictionary = System.Collections.Generic.Dictionary[System.String,System.Object]()
> 
> # The inputs to this node will be stored as a list in the IN variables.
> dict = IN[0]
> 
> # Place your code below this line
> 
> # Assign your output to the OUT variable.
> OUT = dict
```

---

_[View the full topic](https://forum.dynamobim.com/t/working-with-dictionaries-in-python/43440)._
