# ee.Dictionary.fromLists

Construct a dictionary from two parallel lists of keys and values.

<br />

| Usage | Returns |
|---|---|
| `ee.Dictionary.fromLists(keys, values)` | Dictionary |

| Argument | Type | Details |
|---|---|---|
| `keys` | List | A list of keys. |
| `values` | List | A list of values. |

## Examples

### Code Editor (JavaScript)

```javascript
// Corresponding lists of keys and values.
var keys = ['B1', 'B2', 'B3'];
var values = [182, 219, 443];
print('Dictionary from lists of keys and values',
      ee.Dictionary.fromLists(keys, values));
```
Python setup

See the [Python Environment](https://developers.google.com/earth-engine/guides/python_install) page for information on the Python API and using
`geemap` for interactive development.

```python
import ee
import geemap.core as geemap
```

### Colab (Python)

```python
# Corresponding lists of keys and values.
keys = ['B1', 'B2', 'B3']
values = [182, 219, 443]
display('Dictionary from lists of keys and values:',
        ee.Dictionary.fromLists(keys, values))
```