# Challenge: Add Element to the Hashtable and Verify It

Can we add an element to a hash table in Python and Powershell?

## We'll cover the following

## Problem statement

Add an element `david: 34`

to the hash table and check if we have added the element correctly by using the `contain`

function.

## Given data

A hash table

```
age={'sam': 31, 'prateek': 27, 'susan': 25}
```

## Expected output

We should get `true`

as the output after checking `david: 34`

using the `contain()`

function.

## Coding exercise

This problem is designed to check your understanding, so you are encouraged to solve it on your own. If you get completely stuck, refer to the next lesson which will explain the solution in detail.

## Python

Get hands-on with 1200+ tech skills courses.