## Problem:

I was trying to find common elements in two lists python. So I wrote this code:

```
x = [1, 2, 6, 9]
y = [1, 3, 8, 9]
x_as_set = set(y)
intersection =x_as_set.intersection(y)
intersection_as_list = list(intersection)
print(intersection_as_list)
```

But when I compile this it gives error. Please help me to find common elements in two lists python