<reponame>ctOnmNUd9V2D/papi<gh_stars>0
def compact_dict(dct: dict) -> dict:
    return {key: value for (key, value) in dct.items() if key and value}

def compact_dict(dct: dict) -> dict:
    return {key: value for (key, value) in dct.items() if key and value}