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