def can_be_formed(histogram_word_letters, histogram_rack_letters):
     """Takes two dictionaries of letter frequencies,
returns True if histogram_word can be formed with letters of histogram_letters"""
     for item in histogram_word_letters:
          if histogram_word_letters[item] > histogram_rack_letters.get(item, 0):
               return False
     return True