sort+filter dictionary by value python with filter condition code example Example: filter dict {k: v for k, v in points.items() if v[0] < 5 and v[1] < 5}