Question: Given a list of n numbers how can i print each element except the duplicates?

```
d = [1,2,3,4,1,2,5,6,7,4]

```

For example from this list i want to print : 1,2,3,4,5,6,7

Answer: 
Since order doesn't matter, you can simply do:

```
>>> print list(set(d))
[1, 2, 3, 4, 5, 6, 7]

```

It would be helpful to read about [**`sets`**](https://docs.python.org/2/tutorial/datastructures.html#sets)
All you have to do is

1. create an array.
2. get list's element.
3. if element exists in array, leave it.
4. and if it does not exists, print it.