问题 I would like to iterate over a dictionary, and append each key (letter) repeated by the number of times of its value (frequency) to a new list. For example: input: {'A':1, 'B':2} . Expected output: ['A', 'B', 'B'] What I'm doing is not working. What do I write in my function to do this? def get_freq_dict(): freq_dict = {'J' : 1, 'K' : 1, 'Q' : 1, 'X' : 1, 'Z' : 1,\ 'B' : 2, 'C' : 2, 'F' : 2, 'H' : 2, 'M' : 2, 'P' : 2,\ 'V' : 2, 'W' : 2, 'Y' : 2, '' : 2,\ 'G' : 3, 'D' : 4, 'L' : 4, 'S' : 4, 'U