# Work with dictionary

**URL:** <https://forum.godotengine.org/t/work-with-dictionary/26903>\
**Category:** Archive\
**Created:** [October 21, 2018, 6:59pm UTC](https://forum.godotengine.org/t/work-with-dictionary/26903 "2018-10-21T18:59:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://forum.godotengine.org/uploads/default/original/2X/4/4b0a7fa8a6334634b94a13d421f0d99e6f04e21f.svg) [@system](https://forum.godotengine.org/u/system)\
**Post date:** [October 21, 2018, 6:59pm UTC](https://forum.godotengine.org/t/work-with-dictionary/26903/1 "2018-10-21T18:59:53Z")

</div>

| | | |
| --- | --- | --- |
| ℹ | **Attention** | Topic was automatically imported from the old Question2Answer platform. |
| 👤 | **Asked&nbsp;By** | Alexandr |

How to add something to an existing dictionary?

---

<div class="post-metadata">

**Author:** ![system](https://forum.godotengine.org/uploads/default/original/2X/4/4b0a7fa8a6334634b94a13d421f0d99e6f04e21f.svg) [@system](https://forum.godotengine.org/u/system)\
**Post date:** [October 22, 2018, 12:11am UTC](https://forum.godotengine.org/t/work-with-dictionary/26903/2 "2018-10-22T00:11:10Z")

</div>

| | | |
| --- | --- | --- |
| 👤 | **Reply From:** | kidscancode |

```auto
var some_dict = {"a": 1, "b": 2}

```

You can add another key like so:

```auto
some_dict["c"] = 3

```

This is all explained in the [GDScript “Dictionary” documentation](http://docs.godotengine.org/en/latest/getting_started/scripting/gdscript/gdscript_basics.html#dictionary)
