keys

Description

Returns a copy of the dictionary’s list of keys.

Syntax

dict. keys()

Return Value

list

Time Complexity

#TODO

Remarks

See the note for dict.items().

Example

>>> d = {'a': 1, 'b': 2}
>>> d.keys()
['a', 'b']

See Also

#TODO