Question: I Have this object:

```py
myObj = [{'city':'New York', 'number': 5550}, {'city':'San Francisco', 'number': 0565}]

```

How could I use list comprehension to store only the `_city_` attribute in the list below:

```py
my_new_list = [ HERE THE LIST COMPREHENSION ]

```

Output should be: "New York", "San Francisco"

Answer: 
Try this:

```
my_new_list = [item['city'] for item in myObj]

```

The item value would be `{'city':'New York', 'number': 5550}` the first time and `{'city':'San Francisco', 'number': 0565}` the second time. Since these are dictionaries, we can use item['city'] to access the city value from each dictionary.
Here you go:

```py
my_new_list = [row['city'] for row in myObj]

```

value

```py
['New York', 'San Francisco']

```