I have a python dictionary with the following entries:
professions = {Peasant : ["Peasant", 10000], Merchant : ["Merchant", 15000], ...}
Where the keys are id's. Is there a clever way to get a list of the first entries of the value lists? I'd like a function that returns:
["Peasant", "Merchant", ...]
thanks for suggestions
professions = {"Peasant": 10000, ...}?