In Python the Dictionary keys() method is used to return a view object that displays a list of all the keys in the given dictionary.
Syntax:
The Dictionary key() method doesn’t take any Parameters.
Example:
# dictionary method STUDENT = {'Name': 'Phillip', 'Class': '10'} print(STUDENT.keys()) element = STUDENT.pop('Name') empty_dict = {} print(empty_dict.keys())