SyntaxFix
Write A Post
Hire A Developer
Questions
A bit shorter, at least:
wanted_keys = ['l', 'm', 'n'] # The keys you want dict((k, bigdict[k]) for k in wanted_keys if k in bigdict)