result = map(lambda x: dictionary[x], mylist)
I am learning lambda expressions and the concept seems to be little confusing. I am trying to understand what this lambda function is supposed to do and rewrite as a separate function. My understanding is that it takes an item from the list and it then get a value from the dictionary...
Below is how I attempted to rewrite the lambda part
result = list()
for x in mylist:
value = dictionary[x]
result.append(value)