# Converting an Elixir list into a Python dictionary

**URL:** <https://forum.elixirforum.com/t/converting-an-elixir-list-into-a-python-dictionary/35763>\
**Category:** Discussions\
**Tags:** lists, python, dictionary\
**Created:** [November 24, 2020, 8:32pm UTC](https://forum.elixirforum.com/t/converting-an-elixir-list-into-a-python-dictionary/35763 "2020-11-24T20:32:42Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![gregvaughn](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/gregvaughn/32/954_2.png) [@gregvaughn](https://forum.elixirforum.com/u/gregvaughn)\
**Post date:** [November 24, 2020, 9:02pm UTC](https://forum.elixirforum.com/t/converting-an-elixir-list-into-a-python-dictionary/35763/4 "2020-11-24T21:02:09Z")

</div>

That python example looks like json

```elixir
iex(2)> [color: "Red", make: "Mclaren", mileage: 15641.469] |> Map.new |> Jason.encode!
"{\"color\":\"Red\",\"make\":\"Mclaren\",\"mileage\":15641.469}"

```

---

_[View the full topic](https://forum.elixirforum.com/t/converting-an-elixir-list-into-a-python-dictionary/35763)._
