How to filter out Dict based on the value of subdict

Replace (k, v) by kv as function argument and then obtain the value via kv[2].

2 Likes