get values of a dictionary python code example Example 1: list of dict values list(d.values()) Example 2: how to get the value of key in python print(dict["key"])