Run
myDict = {'a': 'apple', 'b': 'banana', 'c': 'cherry'} keysList = [key for key in myDict] print(keysList)
Output