Calculate the combined weight of the packages sent to one city

Hi all, I am trying out a question on Practice 4 from the new course on UiPath Academy named: RPA Developer Production Ready Essentials.

Practice 4 - Dictionaries & Doubles (Workflow).zip (12.6 KB)

The solution is as attached above. I don’t understand how the dictionary variable “Cities” are initialized with values.

Or can anyone explains how it works? I looking it for hours and can’t figure out.


I don’t understand what is the question @Zenith,

The thing is, at the beginning, the cities dictionary has no values, then you are looping through the senders dictionary values and adding them to the cityList array and cities dictionary , then you are using the list to display the drop down.

I don’t understand how the values are aligned to cities variable while looping.