for names in city_names: iteration_count += 1 print(iteration_count, names) I am trying to set the result of this loop equal to a variable, how would I proceed in doing so?
Here is the list I am using in the loop:
city_names = ['Buenos Aires', 'Toronto', 'Marakesh', 'Albuquerque', 'Los Cabos', 'Greenville', 'Archipelago Sea', 'Pyeongchang', 'Walla Walla Valley', 'Salina Island', 'Solta', 'Iguazu Falls']
var = zip(city_names, range(len(city_names)))?result = list(enumerate(city_names, start=1))?