keys of dictionary python code example Example: dict keys # To get all the keys of a dictionary use 'keys()'