ejdic = {"apple": "りんご", "baby": "赤ん坊", "cask": "樽"}
while True:
word = input("英単語?")
if word == "":
break
if word in ejdic:
meaning = ejdic[word]
print(meaning)
else:
print(f"{word}という語は登録されていません")
print("終了!")
# プログラム9-19(英和辞典 ②:ない単語に対応)