辞書/翻訳者を作成していますが、ユーザーに「hello」と「Hello」と書いてもらい、「Ronne」という結果を受け取ります。検索時に2つの結果を許可する方法
print ("English to Exrian Dictionary")
search = input("Enter the word you would like to translate: ")
if search == "Hello":
print ("Ronne")
elif search == "Bye":
print ("Zio")
else:
print ("No matches were found for '" + search + "'")
完全性を期すために、 '.lower()'アプローチに加えて、 '' Hello '、' hello ''で検索すれば ' - この場合はあまり明確ではないようですアプローチは '.lower()'を使うよりも、まだb知っている。 – jedwards
'if ... elif ...'を使うのは2,3ワードで大丈夫ですが、より多くの単語を扱うには[dictionary](https://docs.python.org/3 /tutorial/datastructures.html#dictionaries)。 –