I Have this object:
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:
my_new_list = [ HERE THE LIST COMPREHENSION ]
Output should be: "New York", "San Francisco"