You can't possibly be under the impresssion that "person = next((item for item in list_of_dicts if item.get('name') == 'Bob'), "person not found." )
" is clearer than the for loop you replaced, which was crystal clear at a glance. This one-liner would give an aspirin a headache!!!