题解 | #字典新增#
字典新增
https://www.nowcoder.com/practice/a69d651105ee4cfd86c56418f0aa9de3
letter = input()
word = input()
if letter in vocab_dict:
if letter == 'd':
vocab_dict[letter] = list(vocab_dict[letter]).append(word)
else:
vocab_dict[letter].append(word)
else:
vocab_dict[letter] = word
print(vocab_dict)