get keys of dictionary as list python code example Example 1: dict get list of values list(d.values()) Example 2: dict_keys to list list(newdict.keys())