I have two lists as shown below (of equal length)
cities = ['New York','Tokyo','Moscow','London']
altitudes = ['13000','12000','11000','9000']
I want to construct a dictionary as follows
mydict = {x : y for x in cities and y in altitudes}
My python interpreter says invalid syntax. why is this invalid? How would I do this?