SyntaxFix
Write A Post
Hire A Developer
Questions
A list comprehension seems to be a good way to do this:
>>> [mydict[x] for x in mykeys] [3, 1]